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 4192

Custom Post Types extend the WordPress back-end to support additional, non-Post content.

1
vote
You can force single queries to 404 like they don't exist. function wpse67329_force_mycpt_single_404() { if ( is_single() && get_post_type() == 'mycpt' ) { global $wp_query; $wp_query->set_ …
answered Oct 6 '12 by Zlatev
1
vote
1answer
I'm planing a custom post type functionality for my theme and need to be able to display more than just one post_type in a admin overview table. That request I imagine might look like edit.php?post_ty …
asked Mar 24 '11 by Zlatev
1
vote
The problem must be how you define your post variable. You assume it's the global $post but that's not always the case especially in non-singular pages like archives. The filter itself provides the c …
answered Apr 19 '16 by Zlatev
1
vote
First thing that comes to mind is to use the built-in walker the Nav Menus use. That would be something like that $custom_walker = new Walker_Nav_Menu(); wp_list_pages( array( 'walker' => $custom_wal …
answered Sep 14 '12 by Zlatev
1
vote
It seems like theme author disabled this fuctionality for certian post type's attachments, for a reason. Trying to get it back could very well break something else. Try contacting theme's author. (S)h …
answered Nov 18 '12 by Zlatev
0
votes
Name your keyword input just s <input name="s" type="text" placeholder="Filter by keyword" value=""/> This is enough for WP to recognize the request as search plus you won't have to do the $query-> …
answered Aug 30 '17 by Zlatev