This question is a follow up to a question I recently asked. I’ve implemented what seemed to be the only solution, and it seems to work (YAY!). I just...
I have looked at many posts and questions regarding searches for custom meta, but I want to search for posts and include those if the search query matches an...
Some of my posts (not all) have a price as a meta key/value. Today I use the pre_get_posts action so that my users can search for prices that are...
I’m creating a function that displays the most viewed posts and would like to be able to show posts based on how old they are. Modifying the query is...
I’m storing posts, a user follows in a custom table that has the columns id, post_id and user_id. To fetch posts that a user follows I have extended the...
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that...
Hi I’m working on a store locator. I have a custom post “clinics” where I save clinic details (address,.., lat, lng). Each time I publish a new clinic I...
I’m almost there on this one. On functions.php i have this: function base_home_product_post_type( $query ) { if($query->is_search() && $_POST['box'] == 'sku') { $query->query_vars['post_type'] = 'product'; $query->query_vars['meta_key'] = 'sku'; $query->query_vars['meta_value']...
Is there any difference between hooks posts_where with posts_join and posts_search performance wise?
I want to know which filter hook I should use that performs faster. I did try both several times and I noticed that posts_search is a bit faster than...
I am running into one issue with pre_get_post filter. Actually I have 4 post types. Post, Pages, Events, and Venue. I created one custom field called city for event...