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 80031

get_posts() is a function for creating multiple loops. It retrieves a list of latest posts or posts matching criteria.

0
votes
1answer
Right now my site shows 3 random posts at the end of my single page articles. Here is the code I use and it works (with comments): <?php $rand_posts = get_pos …
asked Oct 16 '17 by IXN
0
votes
The thing is that, contrary to popular belief, pre_get_posts does not work for single Page requests.1 Not even for is_front_page(). As for get posts(), in order to work I needed to use a syntax like: …
answered Oct 28 '15 by IXN
-1
votes
2answers
I try to create a page that shows my posts (a page different than the "posts page" defined in wp-admin). When I copy my index.php into this new page and add <?php query_posts('post_type=post&posts_ …
asked Oct 27 '15 by IXN