Hi,
thanks for the quick support! Everything works fine, but after adding
add_filter( "adverts_list_query", function( $args ) {
global $wp_query;
if(!is_array($args["tax_query"])) {
$args["tax_query"] = array();
}
$args["tax_query"][] = array(
'taxonomy' => 'advert-example',
'field' => 'term_id',
'terms' => $wp_query->get_queried_object_id(),
);
return $args;
});
to the functions.php only the new taxonomy is shown and every item in each advert_category is missing now.
-
This reply was modified 5 years, 4 months ago by lenzsolution.