Metadata
-
Hello Dartiss or ArtissTheGeek, thanks for take a review of the metadata printed from your plugin, though I have to say that the description taken from the excerpt isn’t always a good practice, for example I have my excerpt with html table for best appearance and the plugin post all the crude html as “description”. I have All In One Seo plugin installed and so I have temporary solved by modifying the file generate-embed-code-php:
$description = get_post_custom_values('_aioseop_description'); foreach ( $description as $key => $value ); $result .= $ttab . '<meta itemprop="description" content="' . $value . '" />' . $newline;
Furthermore, I have seen in the YouTube metadata that they use additional:
$result .= $ttab . '<meta itemprop="isFamilyFriendly" content="true" />' . $newline;
And Yandex requires as well:
$result .= $ttab . '<meta itemprop="thumbnail" content="https://i.ytimg.com/vi/' . $id . '/hqdefault.jpg" />' . $newline;
I hope this helps and one more metadata to be sniffed from YouTube must be the “duration” of the video (Yandex required)
Thank you for the good job!
- The topic ‘Metadata’ is closed to new replies.