Browsing Tag


Populate a drop down list in query using some php

Here’s my script in php $pages = get_pages(); foreach ($pages as $pagg) { $html .= '<option value="'.get_page_link($pagg->ID).'"' . selected( $hero_options['pp_dropdown_link_'.$i.''], ''.get_page_link($pagg->ID).'', false) . '>'; if

Meta Query filter custom input field types

Haven’t really seen any tutorials that include Meta_query array that shows how to get input field values on submit from users to filter results within

How to SQL query by post title in wordpress when title has an apostrophe

I’m creating a shortcode in wordpress where the user can use the post title or slug of a post to pull information from a post.

carrying custom wordpress query variable throughout session

I’m creating a wordpress site that needs to have two distinct versions. The changes in the two are only frontend, and will be very minimal

Which is better and faster ? WordPress Queries or SQL Query

Suppose I am developing a minimal theme, the the post page single.php displays only the post title, the excerpt and the content. So in general

Fatal error: Call to a member function query() on a non-object php [duplicate]

This question already has an answer here: Call to a member function on a non-object [duplicate] 8 answers I’m a tech support at a school

How to query the custom fields by language?

For each post, there is a custom field name “Function”, the key/value pair is like this: Key : Functions Value : <!--en-->Nourishing Yin and invigorating

How can I improve a slow custom query? (subquery + inner joins with custom fields)

I have a query that is used to return available rooms for a booking system Using ACF, I have a custom post type representing reservation

How to query posts of standard post format. For real

So, I have been looking EVERYWHERE. I tried every kind of combination. So far, nothing. I have to query two posts to show on my

How to pass meta_value in worpress query posts

I want to pass meta_value in query posts in wordpress. Here coding I tried but not working. <?php $db_highest = $wpdb->get_results($wpdb->prepare("SELECT meta_value FROM wp_postmeta WHERE

MySQL query and array output from same database column

I’m still quite new to PHP & MySql and I’m not sure whether this would be acheived as SQL or PHP. I have the following

mySQL Query seems to crash server

I have a mySQL Query to handle a fairly complicated search in WordPress because I’ve been struggling to get wp_query to do everything I need

WordPress Timthumb query strings

Having a WordPress theme which is using Timthumb. The images are displayed as follows: Tried to make a rewrite in the .htacces, after that

Query to get all the posts of more than 2 meta_value having same meta_key?

Meta_value will have checkbox infront of them so when both the check box is selected posts related to both the meta_value will be displayed. Read

Query for menus in backend (BE)

I want to create a simple plugin (already started) to have in one place recurring tasks (for me as webdesigner) e.g. take site offline, set

See output of a sql query while plugin installation in wordpress

Doing wordpress plugin development, I am creating a table (while installing the plugin) with the following string: $sql = "CREATE TABLE (query skipped)..."; /*someting*/ The

Back to Top 134674 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising