- September 7, 2017 at 9:17 pm #14613
I have the filter setup on this page:
(login using admin credentials provided above to access it)
As you can see, the post type I am using is “video” and shows a previous thumbnail of the video in the post. I would like to be able to include this thumbnail in the search results…is this possible?September 8, 2017 at 9:56 am #14619
Thank you for the details, I’ve looked up the issue via the back-end.
The problem is, that those thumbnails are not actually images, but the videos itself – therefore the plugin is not able to find any related image. However, the video link is stored within the ‘qodef_post_video_link_meta’ custom field, and it might be possible to link to the original youtube thumbnail based on the video key.
I’ve put together a custom code, that parses the video key based on the youtube URL, and links to the youtube thumbnail. Place it to the functions.php file in your theme/child theme directory (only copy from line 3):
IMPORTANT: Make sure to have a full site back-up before you make direct changes in your theme files. Also, I highly recommend using an FTP client to make the changes. The built in WordPress file editor will malfunction if a syntax error is found in the code.
Le me know if you need help with this.Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.