the_post_thumbnail and multiple WP_Query
Missed last two loops had $queryX->the_post(); after the_post_thumbnail(); Now when I changed it – works perfectly! Hope it helps someone!
Missed last two loops had $queryX->the_post(); after the_post_thumbnail(); Now when I changed it – works perfectly! Hope it helps someone!
Wp Query sort order
Look at taxonomy parameters in WP_Query, the “Multiple Taxonomy Handling” example does pretty much what you want if I understand you correctly.
Maybe try adding this before the loop: $count = $wp_query->post_count; But that may only return the number of posts you have set for posts_per_page, in that case you might be able to use: $count = $wp_query->found_posts;
Good days. I found a better approach. I have a custom function that looks at the multi-dimensional array and determines if they are empty. Using that I found a way to dynamically add tax_query array into the main query for my wp_query. I kept the “pool” in the main $args. I removed the month and … Read more
get term objects and post objects in query
The easiest option I can think of is to add a text field option to the customizer. You can have the staff member install the WordPress App on hes or her phone to adjust the text on the fly when necessary.
With the while loop you can add all of the values to an array ($options). Then, while looping through values you can check to see if the same value appears in the array(in_array($needle,$haystack)). If it does, do not add it to the options array. Then, loop each of your clean values into the select. As … Read more
I don’t think this can be cleanly expressed in WP query API. YOu can query for posts matching all of terms in a set or any of terms in a set, but there is no concept of how many terms matched. You would need to write either: Very custom SQL for the query you want … Read more
Multiple wpostmeta.meta_key