• Resolved evilchinesefood

    (@evilchinesefood)


    Hello,
    Im trying to make a way to were a user can post a video on one our sites with text beneath it. Is there a way to pull in the youtube tumbnail image into a post to use it as its post thumbnail. So example:

    I post a youtube video on the site:
    IMAGE LINK

    Using html/php i pull in the posts on to my website using the below code:

    <?php
       $posts = get_posts('cat=3');
       foreach ($posts as $post) : setup_postdata( $post );
    ?>
       <?php the_date(); echo "<br />"; ?>
       <?php the_title(); ?>
    <?php endforeach; ?>

    I want to load the image/video and then the title of the post. Not the date/any other content. How can this be done?

  • The topic ‘WordPress get youtube image tumbnail’ is closed to new replies.