The WordPress codex page for query_posts states that it does not cover all the parameters which query_posts takes:
Parameters
This is not an exhaustive list yet. It is meant to show some of the more common things possible with setting your own queries
I couldn’t find a reference of all the parameters which are accepted by query_posts, though, even in just a simple list form. Is there a cheat-sheet or something similar available with this data?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Below is everything from WordPress 3.0.1 found in the parse_query() function of /wp-includes/query.php (lines 1246-1550).
However, it’s possible for a plugin to add parameters and so a list can never be fully complete:
attachmentattachment_idauthorauthor_namecatcategory__andcategory__incategory__not_incategory_namecomments_popupdayerrorfeedhourmminutemonthnumnameorderorderbyppage_idpagepagedpagenamepost__inpost__not_inpost_statuspost_typepreviewrobotsssentencesecondstaticsubpostsubpost_idtag__andtag__intag__not_intag_idtag_slug__andtag_slug__intagtaxonomy– (pre 3.1)tbterm– (pre 3.1)wwithcommentswithoutcomments-
yearPre WP 3.1
meta_key-
meta_valueSince WP 3.1
fieldsmeta_querytax_query
Method 2
If you can read PHP code, you can take a look at the function parse_query($query) in class WP_Query of file wp-includesquery.php
The supported arguments are all listed and managed there.
Method 3
I use the Codex page for WP_Query.
http://codex.wordpress.org/Class_Reference/WP_Query
The list may not be exhaustive but it is useful, fairly comprehensive and up-to-date. I believe that WP_Query and query_posts share the same parameters.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0