Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Image preview not working for "Featured Image From URL"
- This topic has 7 replies, 2 voices, and was last updated 8 years, 5 months ago by
Ernest Marcinko.
-
AuthorPosts
-
December 26, 2017 at 10:33 pm #16033
Ckdestef
ParticipantHello,
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
December 27, 2017 at 11:08 am #16037Ernest Marcinko
KeymasterHi 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
[code]fifu_image_input[/code]
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!
December 27, 2017 at 2:25 pm #16041Ckdestef
ParticipantErnest,
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 #16042Ernest Marcinko
KeymasterHi 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:[code][<strong>SKU:</strong> <i>{_sku}</i><br>]{descriptionfield}[/code]
This results the following output: https://i.imgur.com/bIRGrg9.png
December 27, 2017 at 3:13 pm #16045Ckdestef
ParticipantAwesome! 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 #16050Ernest Marcinko
KeymasterFor 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’:
[php]
$taxonomy = ‘product_cat’;
$field = ‘content’;
[/php]I hope this helps!
December 28, 2017 at 5:03 pm #16071Ckdestef
ParticipantThanks. I give it a try when I have some time.
December 29, 2017 at 10:25 am #16081Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.