Support » Plugin: Jetpack by » sharing video on facebook from wordpress

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve


    The Stackexchange post you linked to includes an answer that should help you:

    You could include that code in a small plugin.

    Jetpack itself doesn’t look for videos in the posts, but I took note of the suggestion. We’ll consider adding the option in a future Jetpack release.


    That is great news, I think it would be a very useful addition.

    In terms of the suggestion for using a plugin, how would that “look”. Never actually created my own plugin. Are you saying that I could create a plugin that is “activated” for each post, and then within each post, look to see if there is an embedded YouTube link. If that link is found, then add the addition meta tags to the page, so that Facebook can pick them up?

    Any tips on where I could get started creating this?



    Plugin Author Jeremy Herve


    I haven’t actually tested the code in the Stackexchange post, but to transform that code into a plugin you can follow the instructions here:

    You will basically need to copy the code from Stackexchange into a new PHP file, and add a file header to that file to give a name to your plugin. Once it’s done you can just drop the plugin to your plugins folder.

    Perfect, thanks for the info!


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘sharing video on facebook from wordpress’ is closed to new replies.