New answers tagged

2 votes

WP_Query sort by ACF date field (newest first) with blank dates first

I ended up using these WP_Query arguments: 'orderby' => 'meta_value', 'order' => 'ASC', 'meta_key' => 'custom_date', 'meta_query' => array( 'relation' => 'OR', '...
Space's user avatar
  • 129
1 vote

How to sort custom post's category by id from the theme's function.php?

In your wp_dropdown_categories function call, you are using 'orderby' => 'NAME'. This argument is case-sensitive, and it should be 'orderby' => 'name' (all lowercase). $args = array( 'class' ...
vijay pancholi's user avatar

Top 50 recent answers are included