Forums Forums Search & Filter Pro using search and filter pro with acf to direct the user to a specific page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #207660

    We are using search and filter pro with acf

    we have this part working
    The idea and what we have working is that certain custom post types are tagged with destinations and months using acf and then a search form on the homepage allows the user to click a destination such as Botswana the second dropdown of months updates to show the months that are good to travel such as March, April then when the user can click submit

    the issue
    The user is taken to a search result page which only lists the one item so you then have to click the title Botswana to view the post which is a bit odd (as there is only one result)

    We would like to
    On submit redirect the user to the actual post

    The page/cpt is:
    domainname.co.uk/destinations/botswana/

    the search result returns:
    domainname.co.uk/destinations/?_sfm_destination_name=Kenya&_sfm_destination_months=May

    Is there any way to direct to the post instead of a search page?

    Thanks
    Nick

    Trevor
    #207667

    I cannot think of an easy way to do this. You would need to re-direct the page when there is just one result.

    Something similar to that described here:

    https://metinsaylan.com/4574/how-to-redirect-to-single-post-page-if-there-is-one-post-in-categorytag/

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