Change more results url?

This topic contains 2 replies, has 2 voices, and was last updated by iltdev iltdev 8 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1016
    iltdev
    iltdev
    Participant

    Me again 🙂

    Is there any way to change the url of the ‘more results…’ link? At the minute it goes to the default WordPress search page /s=keyword. I’d like it to go to a custom page instead.

    The idea is I want to sent the GET keyword to another page and insert it into POST.

    • This topic was modified 8 years, 4 months ago by iltdev iltdev.
    #1018
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Yes, but only by altering the code a little bit.
    Open up the wp-content/plugins/ajax-search-pro/includes/shortcodes.php file, and go to the line 450, you should see something like this:

    <a href='<?php home_url('/'); ?>?s='><?php echo $style['showmoreresultstext']; ?></a>

    Basically, that’s the url 🙂

    Best,
    Ernest Marcinko

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


    #1019
    iltdev
    iltdev
    Participant

    Cheers.

    Only one of my searches will be going to a custom page. All other searches will still use the default search results page.

    Would it be possible to add a more results slug field or base address field in a future version? That would be a really useful feature 🙂

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

You must be logged in to reply to this topic.