Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other show all the posts thumbnails ( WordPress )

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #38501
    dynamyc
    Member

    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!

    #104363
    Senff
    Participant

    In its simplest form, it should be something like this:

    
    query_posts( $args );

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

    wp_reset_query();
    ?>

    Start with that and build from there.

    #104383
    dynamyc
    Member

    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.

    #104384
    TheDoc
    Member

    Did you add anything to $args?

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.