Forums Forums Search & Filter Pro Add search form to blog post template

Viewing 9 posts - 1 through 9 (of 9 total)
  • Anonymous
    #176836

    Hi
    Is there any way to add a search&filter form to the blog template, so it appears on individual posts? The shortcode method requires a url, so I assume it won’t work?
    Thanks

    Trevor
    #176843

    You can put the form on any page in a variety of ways:

    1. In a widget area.
    2. In a page editor or a page builder text or code module.
    3. In a template file as a PHP do_shortcode function.

    Where the results appear depends on the Display Results method chosen.

    Anonymous
    #176846

    Ok great – what url would I supply in the ‘results url’ field?
    Thanks

    Trevor
    #176854

    If you are using the Shortcode Display results method, you need to make a page in WordPress for the results and supply that page URL to the form setting. On that page you will probably want both the form and results shortcodes, as per our documentation here:

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/

    Anonymous
    #176878

    But if I am adding it to the posts template, I will not have a single url to supply – it will differ with each post published

    Trevor
    #176891

    You want the search results on each single post page?

    Trevor
    #176930
    This reply has been marked as private.
    Anonymous
    #177099
    This reply has been marked as private.
    Trevor
    #177110

    Sure. Have a good weekend.

Viewing 9 posts - 1 through 9 (of 9 total)