du könntest is_search() noch abfragen
Das ist die Lösung für die Sufu :) Danke
Hier nochmal der ganze Code, falls ihn jemand braucht:
Code
add_action( 'woocommerce_product_query', 'custom_pre_get_posts_query' );
function custom_pre_get_posts_query( $query ) {
if(is_search() === false){
$query->set( 'meta_query', array( array(
'key' => '_thumbnail_id',
'value' => '0',
'compare' => '>'
)));
}
}
Alles anzeigen
Und zwecks Kategorien ohne Inhalt habe ich folgendes:
https://chrisk.io/woocommerce-hi…ategory-widget/
Danke und Gruß