Hi,
the shortcode itself but my guess is that the quote (") characters are being replaced with UTF-8 characters which makes it impossible for WP to recognize the shortcode params.
If you are using Gutenberg, edit the home page, remove the shortcodes, then add a Shortcode block and type the shortcode from keyboard there.
If you are using the Classic Editor, the while editing the homepage click “Text” tab in the editor, remove the shortcode, then type it from the keyboard and save the page.
Thx. that fixed a part of the problem.
but it shows the same adverts anyway. how can i filter the categories?
thx
Andreas
You seem to be doing it correctly, you can filter by category using the category="9" param (where 9 is the term ID).
Maybe you need to update the quote characters as for the search_bar param?
I did but it does not work. It shows alsways the same on both sides
I am not sure then, maybe there is some conflicting plugin installed?
To try to work around it you can add the code below in your theme functions.php file.
add_filter( "adverts_list_query", function( $args ) {
$args['suppress_filters'] = true;
return $args;
} );
If this will not help then you can try disabling the plugins you have one by one and see if and when the problem goes away, you can also try switching to a different theme for a while to make sure the theme itself is not causing an issue.