get_the_terms has strange result since version 6.0
get_the_terms has strange result since version 6.0
get_the_terms has strange result since version 6.0
How can I modify this code to make the search box include tags and meta
WP_Query, Paginate by Custom Field
This may not be possible using what WP_Query gives you out of the box, it wasn’t designed to do math across multiple parameters for sorting. You can filter via meta_query and provide bounds, and you can order by a single value, you can even order by multiple values, e.g. show all items by their lat, … Read more
Searching a tab/space delimited text file based upon form criteria and returning a ‘record’ into a word press results page
$wp_query->found_posts not returning correct value
I found a solution that works (thanks Steve), hopefully somebody will find this useful in the future $sql = “SELECT p.ID FROM wp_posts AS p WHERE post_parent = $post->ID AND post_type=”post_type” AND ID IN ( SELECT post_id FROM wp_postmeta AS pm WHERE pm.meta_key = ‘my_acf_key’ AND pm.meta_value = p.post_title );”; $idList = $wpdb->get_col( $sql );
orderby meta_value_num is not working, giving default order
Searching not only by post name but also category
Optimising WP_Query with ACF Fields