Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search results not linked to PDF
This topic contains 2 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 2 months ago.
- AuthorPosts
- January 24, 2022 at 1:41 pm #36369
Hello There,
I have uploaded a whole book, and it seems to work so thats good. Very happy about that, only when I search and I get my results like here: see search
You see 4 results , but I cant click on them to open them . Thats really a big thing, is this due to this search function ?
Offcourse it would be nice to can click on the result (the PDF) and be redirected to the PDF in stead of this page:
https://docs.viscodiesel.com/image00009/Thank you very much in advance
January 24, 2022 at 1:43 pm #36370When I click on one of the result like:
image0009
Then this is my expected result when clicking: https://docs.viscodiesel.com/wp-content/uploads/2022/01/image00009.pdf
-
This reply was modified 1 year, 2 months ago by
vis71.
January 25, 2022 at 10:01 am #36379Hi,
I assume you mean the links on the result page: https://i.imgur.com/7BHB5WK.png
Well, the plugin can not affect what the final URLs will be in that case. I mean it tries to force the same URL via code, but the theme output has the final say. In most cases it works fine, but if the URLs are printed via a custom method, then it may not work unfortunately.If you have access to the theme code and can change the part where the URLs are printed, you can use the plugin theme API.
Where the link address is printed, this code can try to request the original URL from ajax search pro:
the_asp_result_field('link');
For example:
Best,<a href='<?php echo the_asp_result_field('link'); ?>'>Result URL</a>
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This reply was modified 1 year, 2 months ago by
- AuthorPosts
You must be logged in to reply to this topic.