This topic contains 2 replies, has 2 voices, and was last updated by iltdev 9 years, 7 months ago.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Change more results url?
This topic contains 2 replies, has 2 voices, and was last updated by iltdev 9 years, 7 months ago.
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.
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,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 🙂
You must be logged in to reply to this topic.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |