Secondary search not working

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 Ernest Marcinko 1 year, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #33715
    lukes_aimgroup34
    lukes_aimgroup34
    Participant

    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.

    #33716
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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.
    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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #33717
    lukes_aimgroup34
    lukes_aimgroup34
    Participant

    Thank 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?

    #33718
    lukes_aimgroup34
    lukes_aimgroup34
    Participant
    #33721
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Well, 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 :)


Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.