Elementor custom query

This just requires adding additional parameters to the query->set() array… …it’s standard WP_Query() stuff. So you’d essentially be taking this line: $query->set( ‘post_type’, [ ‘libri’, ‘post’] ); …and expanding it to include a tax query… $tax_query = array( ‘relation’ => ‘OR’, //can also use ‘AND’ depends how you want it to work array( ‘taxonomy’ => … Read more

Undefined variable [closed]

As the error states, your $my variable is not defined. The reason behind it is that you only defines $my when $the_query->have_posts(). Adding $my = ‘No results found’; right after $the_query = new WP_Query( $args ); would solve your problem. $my would then be redefined if results are found.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)