Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › How to set up a results page
- This topic has 4 replies, 2 voices, and was last updated 9 years, 11 months ago by
Jimtowner.
-
AuthorPosts
-
July 6, 2016 at 9:05 pm #9421
Jimtowner
ParticipantWhen the user clicks on an post in a search result list is it possible to have the result display on a page of my choosing rather than my themes default page? I see there is a result shortcode and a “Redirect to url?” but I don’t understand how to use them., including:
What would I put in {phrase} in ?s={phrase}?
What does the result shortcode do and where does it go?A complete example would be great.
Thanks,
SteveJuly 7, 2016 at 12:48 pm #9426Ernest Marcinko
KeymasterHi!
The search results page is completely controlled by the theme itself, so unfortunately this is not possible.
The results shortcode is to place the results list container to a different position on the same page. For example you have the search bar in the right navigation, but you want to display the results in the middle of the page, then you can use the results shortcode to move it there.
A good example is the main search on this page: http://i.imgur.com/K5p0ZX8.png
Another example is the property search demo: http://goo.gl/mNBcui
There I use Visual Composer to create two rows. In the left row there is the search shortcode, in the right row there is the results shortcode.The redirection URL is for cases where the default search page is located on a permalink, or on a different URL. It does nothing, but sends the data to the given URL. In most cases, like yours, there is no need to change that. Some themes however use a different path, in that case it becomes very useful.
July 7, 2016 at 6:00 pm #9431Jimtowner
ParticipantOk, thanks for that explanation Ernest. I don’t know if this is technically feasible but would it be possible to have a configuration in ASP that overrides the theme and says “use this page” to display results. Is that something you could consider for a future version?
July 8, 2016 at 8:53 am #9439Ernest Marcinko
KeymasterIt had been requested before, but so far I haven’t found a stable solution to add this feature yet unfortunately. It’s definitely something I want to be able to implement, but I’m honestly not sure if it’s going to be available anytime soon.
July 9, 2016 at 2:37 am #9456Jimtowner
ParticipantOk. I’ll certainly be interested if your able to add it.
-
AuthorPosts
- You must be logged in to reply to this topic.