WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.