Image preview not working for "Featured Image From URL"

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Image preview not working for "Featured Image From URL"

This topic contains 7 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 3 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #16033
    Craig DeStefano
    Ckdestef
    Participant

    Hello,
    I use the “Featured Image From URL” plugin. I am noticing that Ajax Search Pro results will not preview the featured image using this method. Other searches with the featured image loaded in via WP media display correctly.

    I’ve attached screenshots, once searching VP1140 (which uses the “Featured Image From URL”plugin) , another searching A1101A (which uses the traditional featured image).

    https://www.dropbox.com/s/fantrxrs7zu7j8q/Using-Media-Featured-Image.PNG?dl=0

    https://www.dropbox.com/s/p1aruzyq6vqkpug/Using-URL-featured-Image.PNG?dl=0

    Thanks in advance.

    Craig

    Attachments:
    You must be logged in to view attached files.
    #16037
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Craig,

    Thank you very much for the proper details, it helps me a lot!

    From what I see, that plugin stores the featured image in the

    fifu_image_input

    custom field.

    Try typing in this custom field name into this option: https://i.imgur.com/hnvv4cQ.png
    The plugin then will try to fetch the image from that custom field.

    I hope this helps!

    Best,
    Ernest Marcinko

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


    #16041
    Craig DeStefano
    Ckdestef
    Participant

    Ernest,

    That worked! Thanks for the superb service. Is there a setting that I can display the Woo Commerce SKU number or product category in the results?

    Best Regards,
    Craig

    #16042
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Craig,

    You are welcome 🙂

    The SKU can be displayed without additional code, by using the Advanced title or Content fields.
    Basically, the product SKU is stored in the _sku custom field, so for example to display it before the search item description, you can use this syntax in the advanced description field:

    [<strong>SKU:</strong> <i>{_sku}</i><br>]{descriptionfield}

    This results the following output: https://i.imgur.com/bIRGrg9.png

    Best,
    Ernest Marcinko

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


    #16045
    Craig DeStefano
    Ckdestef
    Participant

    Awesome! SKU is working now. I just need the product category to show up now if possible. I tried “_category” in the same field but it did not work.

    Thanks!
    Craig

    #16050
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    For that, you will need this custom solution from the knowledge base: Displaying the category titles (or taxonomy term titles) in the result title or content

    In your case, the code in the tutorial needs to be adjusted so that the $taxonomy variable is set to ‘product_cat’ and the $field is set to ‘content’:

    
    $taxonomy = 'product_cat';
    $field = 'content';
    

    I hope this helps!

    Best,
    Ernest Marcinko

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


    #16071
    Craig DeStefano
    Ckdestef
    Participant

    Thanks. I give it a try when I have some time.

    #16081
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.