Return records between two meta datetimes saved as strings
Return records between two meta datetimes saved as strings
Return records between two meta datetimes saved as strings
Show Posts via cat+cat in URL that are in both Categories doesn’t work
Category name for all posts getting assigned to a single random post
Custom template – query issues
How can I modify this code to make the search box include tags and meta
WordPress Conditional / Multiple Taxonomy Query
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 );
Rewrite rule for query params
WordPress is removing query variables like page, p from the URL of a custom static page
I think your logic is too complicated. Setting up query_posts() is essentially setting up MySQL query for database. No way query would be able to easily count amount of assigned categories on the fly and run conditions against that. Let’s flip your condition. Instead of posts that aren’t in slideshow category alone we can do … Read more