URL search

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 7 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10610
    romain
    romain
    Participant

    Hello
    I would like to use a static button to perform a particular search. Like a shortcut to a search term.
    So I put this link href on my button :
    http://www.mywebsite.com/?s=mysearch&asp_active=1
    But it is not the results from Ajax Search Pro, it seems to be the results from wordpress.
    How should I write a URL request to perform a search with your wonderful plugin ?
    Thanks a lot !

    #10620
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Romain,

    On the General Options -> Behavior panel make sure the search override is activated and the “Get” method is chosen: https://i.imgur.com/1jbN2it.png

    It that is still not working, then the theme/other plugin might have an separate override function activated, in that case this might not be possible.

    Best,
    Ernest Marcinko

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


    #10626
    romain
    romain
    Participant

    Hello
    Thank you for answering.
    I selected “get” in the option. But it’s the same. Something override the search.
    I work with Enfold theme, and they say there is no special search function in this theme.

    So I tried another solution. I’ve used “Suggested search keywords”.
    But results are opening in the ajax preview, and I don’t want to. Could these results open in a new page, at click on a suggested keyword ?
    Thanx !

    #10655
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    I think I understand what you want now. You want to display the search results by visiting the search page via URL.

    The problem is, that the plugin requires more (encrypted) parameters as well, but it is possible.

    1. Make sure to change the redirect method to “GET”, we will need it ( General Options -> Behavior panel, https://i.imgur.com/1jbN2it.png)
    2. Then do a test search via the form, with the phrase “test”, so you are redirected to the results page like so: https://i.imgur.com/KdRu6k2.png
    3. Use this unique long URL, and change the “s=test” to the search phrase you originally wanted.

    And that’s it 🙂

    Best,
    Ernest Marcinko

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


    #10657
    romain
    romain
    Participant

    What a wonderful team ! Thanks, it’ working !
    RESOLVED

    #10658
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. 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)

The topic ‘URL search’ is closed to new replies.