Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 128475

Refers to a mechanism built into the WP_Query class for querying the database for post data, including pages and CPTs, based upon post meta data.

1
vote
SOLVED: I had this in the function to save the meta data (like an idiot!!) if ( !$value ) delete_post_meta( $post->ID, $key ); // Delete if blank So it wasn't saving the meta value if set to 0. I …
answered Sep 25 '17 by lukgoh
1
vote
Changing the query to: $topics = query_posts( array( 'post_type' => 'topics', 'meta_query' => array( array( …
answered Sep 29 '17 by lukgoh
1
vote
2answers
I'm trying to sort by custom meta data for posts. The custom meta is forum_order. The posts currently only display when the value is either minus or above 0. I would like the default to be 0 so unless …
asked Sep 25 '17 by lukgoh
0
votes
2answers
$topics = query_posts( array( 'post_type' => 'topics', 'post_status' => 'publish', 'posts_per_page' => -1, 'meta_query' => array( 'key' => 'forum_category', …
asked Sep 29 '17 by lukgoh
0
votes
'orderby' => 'date meta_value_num', 'meta_key' => $meta_key, 'order' => 'DESC'
answered Sep 30 '17 by lukgoh