Grow your CSS skills. Land your dream job.

show all the posts thumbnails ( WordPress )

  • # June 14, 2012 at 11:29 am

    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!

    # June 14, 2012 at 12:42 pm

    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.

    # June 14, 2012 at 6:36 pm

    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.

    # June 14, 2012 at 6:46 pm

    Did you add anything to $args?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".