Forums › Forums › Search & Filter Pro › Using filter on search results page after getting results with native WP search
Tagged: filter CPT, WP search
- This topic has 5 replies, 2 voices, and was last updated 5 years, 1 month ago by
Trevor.
-
Trevor(Private) September 7, 2020 at 11:15 am #258591
You can use a wordpress rewrite to point a theme global search to our form. There is an example here (the site shown uses a slug name for the search results page, which looks nicer):
Here there is an example of one that doesn’t use a slug:
Note, the Search & Filter form on the results page must have a Text search field to receive the search string. You would not need/want to have the post type in the parameters, as this is specified in our form settings instead, so you should remove that from the code you already use.
Anonymous(Private) September 7, 2020 at 3:50 pm #258636Hi Trevor,
Thank you for your reply.
With the rewrite point i still get the blog page with “Nothing Found” message, but this time without getting the search results page first. What i meant is to use the filter after the search results page is generated and inside the results page.
I need the post type parameter as there are two searches what this site have. One is for blog posts and another is for the post type as the results have different styling.
Could you point me on another possible solution?
-
AuthorPosts