• Resolved wpusrnm

    (@wpusrnm)


    Hi, i’m having hard time trying to display only search form on my landing page. That’s the shortcode i’m using and it displays all the ads:

    [adverts_list search_bar:="enabled" show_results:="0"]

    Tnx for the great plugin!

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

    (@gwin)

    Hi,
    there shouldn’t be “:” characters before “=”, so the correct shortcode would be

    
    [adverts_list search_bar="enabled" show_results="0"]
    

    You would also need to use the redirect_to param to send a user to a page with [adverts_list] shortcode which can show the search results. The way it is now the search will send the user to a page at which he is now, but the shortcode is using “show_results=0” param so it will never show any results.

    
    [adverts_list search_bar="enabled" show_results="0" redirect_to="https://page/with/adverts_list/results"]
    
    
    Thread Starter wpusrnm

    (@wpusrnm)

    Oh, my bad, I thought you should put the “:”. Thank you very much!

    • This reply was modified 5 years, 6 months ago by wpusrnm.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show only Search Box’ is closed to new replies.