Search Results
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 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
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 |
A page showing more than one post in the main loop.
2
votes
Archive permalinks
The really easy way: Change your permalink structure to include a "front" part. Eg. /news/%postname%
The slightly more complicated and inflexible way: WordPress holds it's data permastruct in a prop …
10
votes
Get rid of Wordpress category, tag and author archives?
To disable categories, tags, author and date archives:
<? …
4
votes
Accepted
Preview Post/Custom Post types in Archive
The get_posts method of WP_Query is what does the heavy lifting as far as getting the posts to display. Before it does anything, however, there's a hook called pre_get_posts that you can hook into. T …
9
votes
Category archive by year with permalink support /category/YYYY
Fortunately, WordPress provides a handy function makes adding your own endpionts really easy. add_rewrite_endpoint
This is all the code you need to make your yearly category archives work:
<? … Because this query var already exists in WP (to take care of the data-based archives), we don't really have to do anything special here. …
2
votes
Accepted
archive as a page, so that it can be added in the wp_menu_nav
Look for this in the code where you registered the lyrics post type:
'has_archive' => true,
Set 'has_archive' => false. That won't work right away, however. So you need to go in an "refresh" your …