Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Secondary search not working
This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 9 months ago.
- AuthorPosts
- June 18, 2021 at 2:30 pm #33715
The custom search on https://aimstagingnew.wpengine.com/recruitment-intelligence/ is supposed to only bring up results from the category “recruitment” and its subcategories (which right now is just hrtech).
We also wanted those results to go to a custom search results page and not interfere with our default search. We had it working earlier this week and cannot figure out how we broke it!
You can search “jobs” as a test. It goes to the search results page but nothing happens. We are using the Divi theme, so we also have a “rec results” layout saved in Divi > Theme Builder, but I’m not sure it is doing anything. Please help! We were supposed to launch on Tuesday.
June 18, 2021 at 2:44 pm #33716Hi,
Currently this is not possible I’m afraid. WordPress uses a single results page, which is invoked when the “s” query argument is sent in the header, and then the theme handles the rest.
Best,
Currently, all the search does is redirect to the custom page – but I very highly doubt the override can be triggered there – the divi archive will simply show the default contents. The override triggers whenever the search query argument is present, and then wordpress automatically shows the default results page.
At the moment only some Elementor pro widgets are supported to be used as a custom page as results page. We may implement integration to other modules as well later on.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 18, 2021 at 3:33 pm #33717Thank you for your quick reply! The only important part of this recruitment search is that on the results page, it shows that search box up top instead of the default. Is that possible?
June 18, 2021 at 7:14 pm #33718It looks like we have it figured out minus one step. How do we send results for a specific search to the category page like this: https://aimstagingnew.wpengine.com/category/recruitment/?s=freelance&asp_active=1&p_asid=2&p_asp_data=1¤t_page_id=400877&qtranslate_lang=0&filters_changed=0&filters_initial=1&asp_gen%5B%5D=title&asp_gen%5B%5D=exact&customset%5B%5D=post
June 19, 2021 at 12:44 pm #33721Well, that is a taxonomy archive page, and passing the search query argument will automatically invoke the search results archive page in wordpress. I’m afraid that is not possible, because once the search parameter is there, wordpress will no longer apply the archive page, but the results page.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.