Ordering by ACF custom field vaule
Ordering by ACF custom field vaule
Ordering by ACF custom field vaule
Modifying category order
meta_query check multiple date formats
Orderby if between two meta fields
Update: The User has clarified the request in the comment to my answer, so i add some info above my original answer. The original answer is still valid 😉 To use external data for your “main” query, you can use the pre_get_posts hook. Use it like this: add_action(‘pre_get_posts’,’get_radius_instructors_for_my_posts’); function get_radius_instructors_for_my_posts($query){ if($query->is_main_query() && !is_admin()){ if($query->is_search()){ //use … Read more
WP_Query random ordering not working since 5.4
This will not be the fastest way to achieve it, – but it will do the trick. If you have a bazillion posts (I’d say more than 1000) – or if you’re server is slow, then this might be too heavy. But I wouldn’t hesitate to use it on any of my sites. If you … Read more
Custom order of posts in wp_query and different taxonomies
Changing cache update rate
sort title descending with title with number