Featured Image Plugin

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17894
    jh52847
    jh52847
    Participant

    Hi I am currently using following url
    https://wordpress.org/plugins/featured-image-from-url/

    but if I use this plugin, I couldn’t see thumnail whenb I search some post from ajax search pro plugin.
    So I asked to developer and he said that in lite version
    I had to change something like following:
    Hi, Jinhee.

    I found a solution for that.

    Open ajax-search-lite/includes/views/result.php

    And replace the line 42:
    style=’background-image: url(“<?php echo $r->image; ?>”);’>
    By
    style=’background-image: url(“<?php echo fifu_main_image_url($r->id); ?>”);’>

    So Would you beable to test this with this plugin and update in next version?
    because I really want this plugin with ajax search pro so I can save my server data.
    thanks

    #17899
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    There is a much easier solution, that will work with both plugin versions, and will retain during updates as well. The developer correctly identified the files, and since there is a very clever function in his plugin to get the image URL, I can easily construct a custom code based on that.

    Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.