How can I sort (orderby) my post by custom field value
I have a custom post type “News”
and with news I added a custom field “choose_date” (we want to give our own date instead of wp date )
now I want to show post order by “choose_date” field
than what should i do? any method or idea to do this?
My current query arguments are
$args = array(
‘order’ => ‘DESC’,
what should I add in this?
Please help me
I used ‘orderby’ => ‘meta_value’, ‘meta_key’ => ‘choose_date’
But its not giving in proper order
- The topic ‘How can I sort (orderby) my post by custom field value’ is closed to new replies.