Query Orderby Parameters

Orderby Parameters

Sort retrieved posts by this field.

  • orderby=author
  • orderby=date
  • orderby=title
  • orderby=modified
  • orderby=menu_order Note: Only works with Pages.
  • orderby=parent
  • orderby=ID
  • orderby=rand
  • orderby=meta_value Note: A meta_key=keyname must also be present in the query.
  • orderby=none – no order (available with Version 2.8)
  • orderby=comment_count – (available with Version 2.9)

Order Parameters

Designates the ascending or descending order of the ORDERBY parameter.

  • order=ASC – ascending order, lowest to highest value
  • order=DESC – descending order, highest to lowest value

Revisions

There are no revisions for this post.

Tags: ,

No comments yet.

Leave a Reply