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 31323

Posts are the core of WordPress. They store content, are categorized, and are expansible with meta. Posts are grouped by post type, and within their post type by taxonomy (though a taxonomy can span more than one post type).

0
votes
It's all about the pre_get_post hook where you can affect the Wp_Query instance. Here is a quick approach: <?php # -*- coding: utf-8 -*- /** * Plugin Name: Post list table discrete category filter …
answered Dec 15 '15 by David
2
votes
I'm not sure what exactly does not work for your custom post type. There are two possible cases: Your custom post type photo_gallery is hierarchical. That would mean, neither (column head and values …
answered Feb 21 '14 by David
7
votes
add_filter( 'posts_results', function( array $posts, WP_Query $query ) { foreach ( $posts as $post ) { $post->extra_data_1 = get_post_meta( $post->ID, 'extra_data … ' ); // and so on … } return $posts; }, 10, 2 ); However I would suggest to use an object oriented approach and create own entity interfaces, that follows your problem …
answered Sep 21 '16 by David
3
votes
; done for ID in $(…); do starts a loop for each line of output of the internal command wp post list --post_type=post --post_status=any --field=ID lists all post IDs of posts. It's in fact a command …
answered Mar 2 '16 by David