This query was working fine, but now i’m having a trouble with it since i’ve switched to multisite. I’ve added “global $switched” and “switch_to_blog(4)”, and it works fine when...
… $args = array( 'post_type' => 'wr_event', 'posts_per_page' => -1, 'meta_key' => 'event_date', 'orderby' => 'meta_value_num', 'order' => $order, 'meta_value' => $yesterday, 'meta_compare' => $compare, if ( is_null($cat) )...
Is there an easy way of obtaining every registered taxonomy and for each registered taxonomy, get all the terms for that taxonomy, and for each term, get the post...
I have been stuck on a particular problem for a while now and have yet to find a way around it. I have custom widgets and for each widget...
I have created a search using WP_Query, it seems like this query is looking for the queried term in title AND tags. Is there a way to have this...
I want to create a search that does: Search within my custom taxonomy – custom-tags search the post title search select meta field ?? dont know search with custom...
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed last...
This is my first attempt at modifying the main query using the pre_get_posts action/filter This is the function currently hooked to it: function advanced_product_search_filter($query) { if(!is_admin() && is_main_query() &&...
I have a custom tag-search feature, which allows people to search multiple tags to return relevant posts. Say they want to see posts that are tagged both ‘WordPress’ and...
Here’s the situation; I am using get_terms to retrieve all terms from Tax 1 with posts associated with it. Using the following $args = array( 'hide_empty' => 0, 'orderby'...