I am trying to perform a query on a custom-type post using the value of a custom field. This field contains a string date: dd.mm.yyyy. The post type name...
  • May 15, 2022
  • 0 Comments
When a user creates/updates a post within the admin, it takes between 15 and 30 seconds for that operation to complete. The culprit appears to be this slow query:...
  • May 14, 2022
  • 0 Comments
I am using the below code in functions.php to add custom query variables to my WordPress project. <?php function add_custom_query_var( $vars ){ $vars = "brand"; return $vars; } add_filter(...
  • May 13, 2022
  • 0 Comments
I have a working query that calls all my posts that have a certain meta value for one of two meta keys: $term = filter_var( $_GET['term'] ); $query =...
  • May 13, 2022
  • 0 Comments
What’s the best way to alter the query being run on the Posts Edit screen (edit.php)? The current method I’m using is by passing an argument to the global...
  • May 12, 2022
  • 0 Comments