Orderby => types_render_field not working…
-
Have a query, and am trying to sort via a custom field but it’s not working. It doesn’t change / sort anything at all.
$args = array( 'posts_per_page' => 100, 'post_type' => 'workshop-date', 'orderby' => types_render_field("title", array("output"=>"raw")), 'order' => 'ASC');
I eventually want to replace title with a date field, but am using the title for simplicity’s sake at the moment.
Replaceing this with ‘title’ works fine, so I know it’s not a sorting issue elsewhere in the code…
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Orderby => types_render_field not working…’ is closed to new replies.