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, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #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:

    Thank you very much in advance


    When I click on one of the result like:


    Then this is my expected result when clicking:

    • This reply was modified 2 years, 4 months ago by vis71 vis71.
    Ernest Marcinko
    Ernest Marcinko


    I assume you mean the links on the result page:
    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:


    For example:

    <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 :)

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

You must be logged in to reply to this topic.