Open Graph tags for videos?
-
I was wondering if there’s any way to designate that a post is primarily an og:type of “video” instead of article, and to pass it the video URL and video metadata? I’ve run into at least one use case where a social media site wants to be able to identify video posts differently from articles, and is expecting the og:type to be video. For example, this post…
https://theawesomer.com/quadcopter-racing-pov/310714/
In the IDEAL world, I’d be able to just use the category “videos” to designate that a post is not an article but a video, but what makes things tricky for us is that the video URL isn’t in the post content but a custom field, so I’m not sure how to handle that.
I suppose I could just code my own implementation specifically for video posts directly in my header.php, but then I need to disable the og:type=”article” for these specific pages.
Any ideas?
- The topic ‘Open Graph tags for videos?’ is closed to new replies.