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’m building a custom search page and what I need is to sort results by relevancy (eg. occurences of a keyword) Using MySQL docs I’ve built this query: SELECT...
I added a basic “favorite/recommend” functionality for posts and comments to a wordpress site I’m working on. I’m storing the total numbers of comment “likes” in a custom comment...
I am struggling with a search filtering. Firstly, my script is searching for users using natural search SQL. The query returns ids of users. Now I would like to...
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 4...
I have thousands of posts that I am displaying on my home page. I want to control number of posts so for this I am using posts_per_pagebut it is...
In my theme’s search.php I have a section set up to show terms that fit the search. I want the term to show up IF the $keyword appears in...
While using the query monitor plugin I could notice I am making a database query 4 times. I am using OPP. So I have a method that gets me...
I have custom post type ‘Product’, and 2 custom taxonomies ‘category’ and ‘product status’. What i am trying to do is list categories in page template and show how...
This query works, but it takes upwards of 20 seconds to run on a Quad Core dedicated server… How can I optimize this? $slides=get_posts( array('post_type' => 'any', 'numberposts' =>...