Skip Navigation

[Resolved] Using YouTube Video as Featured Image in custom Post type

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 1 year, 3 months ago.

Author
Posts
#2634593

Tell us what you are trying to do?
I understand in wordpress you can use a youtube video in posts without issue as the featured image.

Is there any documentation that you are following?
hidden link
go to and pause at 1:26. Here you will see in posts a section called Format and you can choose video.

Is there a similar example that we can see?
I would like to be able to use this feature in my toolset custom post types were video is available. Only a handful have video. So I need to be able to use normal featured images most of the time.

What is the link to your site?

This is the page, that has a video, and would like to call this dynamically as the featured image.
hidden link

#2634721

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

The tutorial video you linked to is somewhat misleading, in that this has nothing to do with WordPress featured images, and instead relates to the WordPress post format functionality.

In the video the tutor does not add a featured image, he simply includes a video URL in the post content and specifies the post format as Video.

The theme he uses displays video format posts in a particular way (the playable preview shown on the front end), but other themes may not. (On my test site that uses the default twentytwentyone theme, for example, it has no such special handling of Video format posts. He is using Divi theme. Other themes will have variable results.)

As far as making this possible with custom post types, in the settings for your custom post types you can specify that the Post Formats option should be displayed in the post editor. You will then be able to mark posts as Video format posts. But how those appear on the front end is wholly dependent on your theme.

#2636257

Thank you for the help and guidance, much appreciated.