• Hi there.

    I want to show the 5 newest ads from 2 categories on the frontpage without searchbar or icons.
    I tried [adverts_list category=”9″ search_bar=”disabled”].
    and [adverts_list category=”10″ search_bar=”disabled”]

    But it shows the searchbar and icons and the same ad.

    What is my failure?

    Thx

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    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.

    Thread Starter cmsbuttler

    (@cmsbuttler)

    Thx. that fixed a part of the problem.

    but it shows the same adverts anyway. how can i filter the categories?

    thx
    Andreas

    Plugin Author Greg Winiarski

    (@gwin)

    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?

    Thread Starter cmsbuttler

    (@cmsbuttler)

    I did but it does not work. It shows alsways the same on both sides

    Plugin Author Greg Winiarski

    (@gwin)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Listing on frontpage’ is closed to new replies.