Skip to main content
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
Results tagged with
Search options not deleted user 65

Set up The Loop with query parameters. This will override the current WordPress Loop and shouldn’t be used more than once. This must not be used within the WordPress Loop.

0 votes

Including post data in a sidebar occurring outside of and before the Loop

What you really need to show us is the relevant code from your sidebar-single.php. But at as guess, how are you rewinding? If you aren't using wp_reset_query(), you might want to try that. http://code …
Dougal Campbell's user avatar
5 votes
Accepted

How to return results of a get_posts() in explicitly defined order

Okay, I was determined to find a way to do this, and I think I've got it. I had hoped to find a simpler solution and avoid having to use a new WP_Query object, but it's just too ingrained into how the …
Dougal Campbell's user avatar
0 votes

How to return results of a get_posts() in explicitly defined order

How about just clearing the orderby with a filter? Right before you query your posts, put in: add_filter('posts_orderby', '__return_false'); Then, after your loop is done: remove_filter('posts_ord …
Dougal Campbell's user avatar