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 answers only user 21376
2
votes
If you only wish to effect the one, single query then just can pass the offset argument through the arguments array. $offset = 1; $ppp = 3; if ( $query->is_paged ) { $page_offset = $offset + ( ( …
answered Nov 2 '15 by s_ha_dum
3
votes
You are going about this the hard way, and the less efficient way. You already have a Loop on the page. You should be able to use that and that alone. if (have_posts()) { while (have_posts()) { …
answered Jul 6 '13 by s_ha_dum
1
vote
Neither of those are complete loops. That is, in both you have the start of an if but not the end of it, and the start of a while loop, but no the end of it. Also, you shouldn't be using query_posts e …
answered Nov 13 '12 by s_ha_dum
0
votes
To precisely match your three <ul> pattern you can do this: $my_query = new WP_Query(); $my_query->query($args); $skip = 2; echo '<ul>'; while ($my_query->have_posts()) { $my_query->the_post(); e …
answered Apr 23 '13 by s_ha_dum
0
votes
Do something like this: function get_custom_posts_wpse_124312() { static $post_qry; if (!empty($post_qry)) { return $post_qry; } else { $post_qry = new WP_Query(array('post_type'=>'post …
answered Nov 24 '13 by s_ha_dum
1
vote
The "offset" depends on the query-- sort order, conditions like category or tag, meta queries, etc.--, and it changes every time a post is added to the blog. It isn't something you "get" so much as so …
answered Dec 10 '13 by s_ha_dum