Forums › Forums › Search & Filter Pro › Have a category pre selected as default
Tagged: acf, default category, default select, default taxonomy, pre select, pre selected, pre-populate
- This topic has 4 replies, 2 voices, and was last updated 7 years, 2 months ago by Trevor.
-
Anonymous(Private) October 23, 2017 at 1:45 pm #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/h0woq6This 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/h0wpd7Here 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(Private) October 23, 2017 at 10:34 pm #138082The 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(Private) October 23, 2017 at 11:26 pm #138092I 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(Private) October 23, 2017 at 11:28 pm #138094I 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
-
AuthorPosts