To vote or comment, enter your email and we'll send a magic link


Documentation: Can you list all the usable orderby terms please?


I made a short list or orderby terms. Can you please add more that work or delete the ones that don't work from this list here:

$order =

date, title, DESC, ASC, rand, title_desc, title_asc, date_desc, date_asc

Can they also be listed here please: https://facetwp.com/help-center/facets/facet-types/sort/

1 year ago

Comments (2)

Since we use WP_Query as the underlying query engine, the arguments are listed here: https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters

1 year ago