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 5 years, 9 months ago.
- AuthorPosts
- December 26, 2017 at 10:33 pm #16033
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.December 27, 2017 at 11:08 am #16037Hi 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 :)
December 27, 2017 at 2:25 pm #16041Ernest,
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,
CraigDecember 27, 2017 at 2:59 pm #16042Hi 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 :)
December 27, 2017 at 3:13 pm #16045Awesome! 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!
CraigDecember 27, 2017 at 6:25 pm #16050For 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 :)
December 28, 2017 at 5:03 pm #16071Thanks. I give it a try when I have some time.
December 29, 2017 at 10:25 am #16081You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.