Search results not linked to PDF

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 Ernest Marcinko 2 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36369
    vis71
    vis71
    Participant

    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

    #36370
    vis71
    vis71
    Participant

    When 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 2 years, 3 months ago by vis71 vis71.
    #36379
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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:

    <a href='<?php echo the_asp_result_field('link'); ?>'>Result URL</a>

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.