Support » Fixing WordPress » Showing thumbnails for first two posts only…

  • Resolved tankmc

    (@tankmc)


    Hi,

    I am stumbling around the PHP to build my theme but have come stuck on a small issue i’m hoping someone will know. I have thumbnails on my index page for each post, and i only want them to show for the first two.

    this i what i have so far but i am having trouble with the selector:

    <?php if ( ##SOMETHIGN HERE## ) : ?>
         <?php the_post_thumbnail(); ?>
    <?php endif; ?>

    Thank you in advance for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Showing thumbnails for first two posts only…’ is closed to new replies.