Support » Plugin: Complete Open Graph » Video meta tag

  • Resolved raefwolfe


    Me again 😉

    Open Graph supports Audio as well as Video fields; would it be possible to include either (especially video!) in the post/page meta options?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Alex MacArthur


    Yes! I’ve put that on my list of future features. In the meantime, feel free to use the available filters to develop that on your own, if you’re comfortable:

    I guess I am doing something wrong, because no matter what I do, I can’t get anything to happen.

    I assume I’m supposed to use & subsequently customize this:

    function add_new_open_graph_fields($data) {
        $data['keywords']['attribute'] = 'name';
        $data['keywords']['value'] = 'keyword1,keyword2,keyword3';
        return $data;
    add_filter('complete_open_graph_all_data', 'add_new_open_graph_fields');

    I added that to my theme functions file as-is, which is from your documentation, but nothing happens in the OG area beneath my content box. Is this correct to drag and drop in? Am I missing a piece?

    Plugin Author Alex MacArthur


    Hi — Is it possible your site is cached? I copied that exact same snippet into my development environment and I’m seeing the following tag being rendered correctly:

    <meta name="keywords" content="keyword1,keyword2,keyword3" />

    A caching issue is my first hunch, anyway. Let me know if that’s not the case.

    I misinterpreted what the code was supposed to do; I was looking to be able to set the video meta tag on a per-page basis, rather than for the whole site. The client does different commercial-type videos for his own clients, and it would be nice to set the video on specific pages.

    Dear Alex,

    any news for Video open graph tags ?

    Need it so badly 🙁

    • This reply was modified 2 years, 5 months ago by p3rtinax.
    Plugin Author Alex MacArthur


    Hi, all —

    Sorry, I’m committed to a few other projects right now and don’t have the bandwidth to tackle a new feature like this, but you should be able to use the included filters to manually include them on a page until then. See here for more on that:

    On each admin page, you could create a custom field that holds the value for the tag, which would then be generated by those filters I mentioned. It’s a big of manual work, but will suffice until anything like this is built into the plugin.


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Video meta tag’ is closed to new replies.