Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to put a video as featured in my theme, i mean, to be shown by the tag "the_post_thumbnail ('')", without using any plugin. Is this possible? Thank you!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

No, it is not possible as-written in core. the_post_thumbnail() uses the ID of the attachment post-type that has been selected as the featured image for the post, then outputs the image associated with that attachment post-type.

You would have to filter the_post_thumbnail() in some manner, but your question specified "without a Plugin".

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.