This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Change more results url?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1016
    iltdeviltdev
    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 12 years, 3 months ago by iltdeviltdev.
    #1018
    Ernest MarcinkoErnest 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 🙂

    #1019
    iltdeviltdev
    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.