Forums Forums Search & Filter Pro Have a category pre selected as default

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #137955

    Hello!

    I want a search form to show only posts from one custom post type and not all custom post types. Please look at the follow screenshots.

    This is how it is now when I go to the Search page
    https://prnt.sc/h0woq6

    This is how I want it to look with the “Produkt” pre selected as default and not showing any posts with the custom post type “Referenser”.
    https://prnt.sc/h0wpd7

    Here I got it to work http://foxdesign-staging.pixeltokig.se if you search for “hls” in the search field in the top right, then it pre selects the “Produkt” as I want to. I have double checked and I have the exact same settings on both http://foxdesign.se and http://foxdesign-staging.pixeltokig.se

    Thanks in advance!

    Trevor
    #138082

    The only way that you can do this is to add some custom javascript to the page that checks if either has been selected, and if not, it then selects the one you want.

    You would need to either employ a third party coder to do this, or use a snippet/answer resource site like Stackexchange to find ideas.

    Anonymous
    #138092

    I think you missunderstood me. We have it already working as we want and want to replicate it on the live site. As you can see if you go to the sites I linked to.

    On the staging site when I submit the Search and Filter form then it extends the url and pre populates the Search and Filter form on the destination site. How do we do that?

    I can assure you that we have not hired a developer for this.

    Thanks

    Anonymous
    #138094

    I cant seem to edit a post here so I re write it without the typo in the previous post.

    I think you missunderstood me. We have it already working as we want and want to replicate it on the live site. As you can see if you go to the sites I linked to.

    On the staging site when I submit the Search and Filter form then it extends the url and pre populates the Search and Filter form on the destination page. How do we do that?

    I can assure you that we have not hired a developer for this.

    Thanks

    Trevor
    #138116
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)