Adding a new orderby= function
-
Hi.
How would one go about adding a new option to ‘orderby=’ when querying posts?
I have a custom field named ‘crew_order’ (where the meta_value is a single number), and whilst I’ve found various scraps of code to call in the MySQL data (such as here https://www.ads-software.com/support/topic/121011?replies=15), it’s not quite what I’m looking for, as I need to keep it as part of a custom query_string.How, and where, would I go about adding “orderby=crew_order” as a function?
Many thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Adding a new orderby= function’ is closed to new replies.