Forums › Forums › Search & Filter Pro › Search form erasing results in other forms?
- This topic has 8 replies, 2 voices, and was last updated 5 years, 10 months ago by
Trevor.
-
Anonymous(Private) May 12, 2020 at 1:53 pm #243545
Hi! I’m new using the plugin so probably there’s something I’m missing out!
I have two child pages of a page, each of them has a search form, where it’s showing results for a different custom post type based on some ACF fields. It’s working awesome.
But, if I add a new search form to the parent page, which is just filtering the ‘post’ post type, if I go back to the child pages, I only see ‘No results found’.
If I delete the parent page search form, everything goes back to normal. But if it’s active, it’s as if the query of that form is affecting the other ones and then it’s not finding anything.
Any clue about what could be happening?
Just to be clear:
Parent Page – S&F to search ‘Post’ post type
– Child Page – S&F to search ‘Event’ post type based on some ACF fields
– Child Page – S&F to search ‘Class’ post type based on some ACF fieldsI’m adding the S&F forms via shortcode, adding them to custom templates that just have the do_shortcode() for each page.
Thanks for your help!
Anonymous(Private) May 12, 2020 at 3:19 pm #243573I’ve been testing a little more. It seems it only doesn’t work when the parent page query is set to ‘search in the following post types: Posts’. If I change that to another CPT, everything works fine.
Also it’s not even necessary that I’m ‘painting’ that search form, just being there in the admin is messing with the other two… If it goes to the trash, everything’s fine. If I change the CPT, everything works.
I’ll keep you updated, thanks!
-
AuthorPosts