Support » Plugin: Featured Video Plus » Trying to echo get_the_post_video_url but no luck

Viewing 1 replies (of 1 total)
  • Aha, I figured it out.
    incase any one else needs this snippet here’s what I used. I used it for Schema, so if you want it to register on search engines, be sure to wrap it with <div itemscope=”itemscope” itemtype=”VideoObject”>

    <?php if (function_exists('has_post_video') ) :
                        $post_id = get_the_post_video_url( $post_id ); { ?>
                    <meta itemprop="embedUrl" content="<?php echo $post_id; ?>" />
                <?php } endif; ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Trying to echo get_the_post_video_url but no luck’ is closed to new replies.