Skip to main content
Add missing and new vars
Source Link
t31os
  • 18.7k
  • 3
  • 56
  • 68

Below is everything from WordPress 3.0.1 found in the parse_query()parse_query() function of /wp-includes/query.php/wp-includes/query.php (lines 1246-1550)(lines 1246-1550). However
However, it's possible for a plugin to add parameters and so a list can never be fully complete:

  • attachment_idattachment
  • attachmentattachment_id
  • author_nameauthor
  • authorauthor_name
  • catcat
  • category__andcategory__and
  • category__incategory__in
  • category__not_incategory__not_in
  • category_namecategory_name
  • comments_popupcomments_popup
  • dayday
  • errorerror
  • feedfeed
  • hourhour
  • mm
  • minuteminute
  • monthnummonthnum
  • namename
  • porder
  • page_idorderby
  • pagep
  • pagedpage_id
  • pagenamepage
  • post_statuspaged
  • post_typepagename
  • previewpost__in
  • robotspost__not_in
  • spost_status
  • secondpost_type
  • staticpreview
  • subpost_idrobots
  • subposts
  • tag__andsentence
  • tag__insecond
  • tag__not_instatic
  • tag_idsubpost
  • tag_slug__andsubpost_id
  • tag_slug__intag__and
  • tagtag__in
  • taxonomytag__not_in
  • tbtag_id
  • termtag_slug__and
  • wtag_slug__in
  • withcommentstag
  • withoutcommentstaxonomy - (pre 3.1)
  • yeartb
  • term - (pre 3.1)
  • w
  • withcomments
  • withoutcomments
  • year

Pre WP 3.1

  • meta_key
  • meta_value

Since WP 3.1

  • fields
  • meta_query
  • tax_query

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:

  • attachment_id
  • attachment
  • author_name
  • author
  • cat
  • category__and
  • category__in
  • category__not_in
  • category_name
  • comments_popup
  • day
  • error
  • feed
  • hour
  • m
  • minute
  • monthnum
  • name
  • p
  • page_id
  • page
  • paged
  • pagename
  • post_status
  • post_type
  • preview
  • robots
  • s
  • second
  • static
  • subpost_id
  • subpost
  • tag__and
  • tag__in
  • tag__not_in
  • tag_id
  • tag_slug__and
  • tag_slug__in
  • tag
  • taxonomy
  • tb
  • term
  • w
  • withcomments
  • withoutcomments
  • year

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:

  • attachment
  • attachment_id
  • author
  • author_name
  • cat
  • category__and
  • category__in
  • category__not_in
  • category_name
  • comments_popup
  • day
  • error
  • feed
  • hour
  • m
  • minute
  • monthnum
  • name
  • order
  • orderby
  • p
  • page_id
  • page
  • paged
  • pagename
  • post__in
  • post__not_in
  • post_status
  • post_type
  • preview
  • robots
  • s
  • sentence
  • second
  • static
  • subpost
  • subpost_id
  • tag__and
  • tag__in
  • tag__not_in
  • tag_id
  • tag_slug__and
  • tag_slug__in
  • tag
  • taxonomy - (pre 3.1)
  • tb
  • term - (pre 3.1)
  • w
  • withcomments
  • withoutcomments
  • year

Pre WP 3.1

  • meta_key
  • meta_value

Since WP 3.1

  • fields
  • meta_query
  • tax_query
Source Link
MikeSchinkel
  • 37.5k
  • 14
  • 116
  • 132

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:

  • attachment_id
  • attachment
  • author_name
  • author
  • cat
  • category__and
  • category__in
  • category__not_in
  • category_name
  • comments_popup
  • day
  • error
  • feed
  • hour
  • m
  • minute
  • monthnum
  • name
  • p
  • page_id
  • page
  • paged
  • pagename
  • post_status
  • post_type
  • preview
  • robots
  • s
  • second
  • static
  • subpost_id
  • subpost
  • tag__and
  • tag__in
  • tag__not_in
  • tag_id
  • tag_slug__and
  • tag_slug__in
  • tag
  • taxonomy
  • tb
  • term
  • w
  • withcomments
  • withoutcomments
  • year