Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #417676

    Hi,
    I just bought the yoast video seo plugin. But there seems to be a problem.
    The plugin cannot see the video’s i add to my pages and posts. (most video’s are added in an easy slider, but also sometimes just as video in a blog post)
    The yoast plugin has an option to add custom fields but this didn’t work. I used this custom field: _aviaLayoutBuilderCleanData aswell as wpseo_video_URL

    I had the yoast team check the isue and they asked me to check if you guys can make the shortcode compatible with the yoast video seo plugin.
    If you have questions for them you can contact them with the provided email adress below.

    I hope enfold will soon be compatible with the yoast video seo plugin. (because i love both enfold and the yoast plugin!)
    Thanks, Jochem

    #417680

    PS: i tried to add this extra code to the functions.php but it didn’t help
    /**
    * Takes the youtube video ID stored in a custom field and adds a full Youtube URL to the content to allow
    * the video SEO plugin to index it.
    *
    * The video URL is added to the top of content to make it override other video’s in the post.
    *
    * @param string $content the input content field.
    * @param array $vid the video array for the post.
    *
    * @return string $content
    */
    function fix_content_input( $content, $vid ) {
    $slides = avia_post_meta($vid[‘post_id’], ‘slideshow’);
    $video = ”;
    if(!empty($slides[0]))
    {
    foreach($slides as $slide)
    {
    if(!empty($slide[‘slideshow_video’])) $video .= ‘ ‘ . $slide[‘slideshow_video’];
    }
    }
    $content = “n” . $video . “n” . $content;

    return $content;
    }
    add_filter( ‘wpseo_video_index_content’, ‘fix_content_input’, 10, 2 );

    #418612

    Hi!

    Does it work when you use the default editor instead of the advanced layout builder?

    Best regards,
    Elliott

    #418880

    Hi Elliott,

    Thanks for your reply.
    It does work when i use the default editor.
    But i prefer to use the advanced editor..
    Do you have a solution?

    #420010

    Hi!

    Is it OK if you give us a copy of the plugin for testing purposes?

    Cheers!
    Ismael

    #421912
    This reply has been marked as private.
    #423327

    Hey!

    Looks like it’s working if you add the iframe code manually in a code or text block:

    <iframe src="https://www.youtube.com/embed/G0k3kHtyoqc" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
    

    Cheers!
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.