pre get posts not working with Tribe Events
pre get posts not working with Tribe Events
pre get posts not working with Tribe Events
I don’t know much about elementor, but to keep this as a Purely WordPress answer you need to change your query to sort by post name. The code you provided looks like a pre-query filter so you should try this: add_action( ‘elementor/query/kunst_op_kunstenaar’, function( $query ) { $query->set( ‘order’, ‘ASC’); $query->set( ‘orderby’, ‘title’); } This sets … Read more
Get URL parameters with rewrite rules
Can I make a Heading block above a query loop block disappear when that query loop has no results?
is it possible to get a list of URLs from post_content directly in a mysql query via phpadmin?
it only selects the users with the meta value and ignores those without it That’s because of this part: $query->set( ‘meta_key’, ‘festival_friend’ );, which adds an extra clause to the meta query clauses, i.e. the meta_query is basically appended with a array( ‘key’ => ‘festival_friend’ ) (yes, an array with just a key item). Try … Read more
Because they do different things and source their data from different places. $_GET is for URL parameters, values passed via HTTP GET. get_query_var is for fetching the query variables of the main post query aka the WP_Query object. Query variables and GET values are not the same thing. Query variables usually get their values either … Read more
How to show sticky posts on all pages of the pagination, not just the first page?
Meta Query compare with LIKE pulls similar post types: 55 and 155, and 1,155
WP-Rocket was deactivated, but the wp-content/object-cache.php file was still present. This file redefined the wp_cache_add in such a way that the method didn’t work, so all requests to get a single option value were resulting in a query to the wp_options table. I deleted the wp-content/object-cache.php file and the page response time dropped to 2 … Read more