treehouse : what would you like to learn today?
Web Design Web Development iOS Development

show all the posts thumbnails ( Wordpress )

  • I want to display all the posts by the featured image of each post.
    Is there a shortcode or can you give me some tips on how to achieve this ?
    Thanks!
  • In its simplest form, it should be something like this:

    <?php 
    query_posts( $args );

    while ( have_posts() ) : the_post();
    the_post_thumbnail();
    endwhile;

    wp_reset_query();
    ?>
    Start with that and build from there.
  • I've tried with your code and when I check the Front-end the div is empty, nothing happen.

    Here is an example of how I want to display the posts, maybe you misunderstood me.
  • Did you add anything to $args?