We’re rewarding the question askers & reputations are being recalculated! Read more.
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 290

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

11
votes
The default arguments for get_posts() function include 'numberposts' => 5. So if you're querying for a search term that returns more than five (5) results the second query will return a maximum value …
answered Oct 8 '10 by goldenapples
1
vote
It sounds like you have a filter running on that page that's adding an offset parameter to your WP_Query. There aren't any really easy ways to search for all filters. The plugin Hikari Hooks is the s …
answered Mar 11 '12 by goldenapples
4
votes
The 'orderby' argument should work with get_children() because get_children() is really just a wrapper around get_posts() with a different set of defaults. The menu order refers to the Order specified …
answered Oct 18 '10 by goldenapples
0
votes
Not sure if this is exactly what you're asking, but it sounds like you're looking for nested loops. This will list the most recent 5 posts in every category on your site: foreach ( get_terms('categor …
answered Feb 9 '11 by goldenapples
1
vote
I'd say your third option is the way to go. Incidentally, why did you roll your own static cache in taxonomy_image_plugin_get_associations() instead of using the built-in WP_Cache API for that? Is t …
answered May 21 '11 by goldenapples