Custom URL for Search Results

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Custom URL for Search Results

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 years, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24551
    danser8103
    danser8103
    Participant

    I don’t have a problem, I am just having trouble figuring out how to do something even after going through all of the documentation. I am using Elementor with the plugin and need to redirect to a custom search results template. I have determined how to do this for the search bar, by simply adding {phrase} into the custom search url. However I cannot figure out how to direct the settings search to the custom search url. Any advice would be appreciated.

    You can find the search on the homepage and currently I am using the search bar and settings separately because I was also having trouble getting them to work together in the same search.

    Ideally I would like users to be able to choose one and/or all of the filters and/or type into the search bar and have them all work together to direct to the custom search template but the documentation is not helping me to get there.

    #24557
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    I would suggest enabling the search results override feature. That will automatically add every query argument to the end of the URL (drop-down values, checkboxes etc..), if that is what you are looking for.

    Best,
    Ernest Marcinko

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


    #24564
    danser8103
    danser8103
    Participant

    Thanks, I’ve done that and still not having any luck with it parsing the results for the filters? It directs to the search page but does not provide the results. While the search box functions perfectly. Or am I just not following how to set up the filters part properly? I want users to be able to select from any of the options and receive their results without HAVING to use the search bar if they don’t want, which it appeared I could do but I am having a lot of trouble following how to do so.

    http://newbranchrea.mysites.io/

    #24576
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Okay, I think I see the issue there, something I missed previously. That is not the actual results page, but just simple page with a custom post carousel/content section. The plugin cannot pass it’s results there, as there is probably a completely different query that the section uses to get the results.
    The default results page works differently, as it uses an internal WordPress query to simply display the results as required, and the search can connect to that query via the API an override the results.
    This might be only possible via extensive custom coding to somehow connect the two different solutions unfortunately.

    Best,
    Ernest Marcinko

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


    #24585
    danser8103
    danser8103
    Participant

    I don’t want the results to be shown interactively on the home page though, I want the user to be redirected to a search results page for the settings filters similar to how the search bar is functioning. Is this not possible? For example, users shouldn’t have to type in a query into the search bar if they just want to see the properties that are For Lease in Industrial. So they select For Lease and Industrial in the dropdown, press the search button and are redirected to the search page with the filtered results.

    Do the filters only work when the results are on the same page with them?

    #24586
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    No, with the override feature the results should be filtered on the results page as well. But in this case the issue is, that the page where the search is redirecting is not the results page (for example, this is the default results page), but to a different URL, which is not the results page itself – or at least it does not seem like it is, as the layout looks very different from the URL above.
    You can place the same search widget to the results page, the filters will be remembered and passed on after redirection – but again, this only works on the search results page.

    It wont work with other, different type of filters (from a 3rd party plugin, theme built-in etc..) as every filter uses a separate interface and query variables to pass the data to. Basically connecting all different kinds of filters is not possible in general.

    Redirecting the results to a custom URL will not automatically place the results there, it is for cases when there is a custom results page permalink structure, and the plugin needs to be adjusted for it.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.