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...
  • May 18, 2022
  • 0 Comments
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...
  • May 18, 2022
  • 0 Comments
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...
  • May 17, 2022
  • 0 Comments
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...
  • May 17, 2022
  • 0 Comments
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...
  • May 17, 2022
  • 0 Comments
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' =>...
  • May 17, 2022
  • 0 Comments