Support » Theme: Pinboard » Show only last sticky post

Viewing 1 replies (of 1 total)
  • If I change…

    <?php while (have_posts()) : the_post(); ?>
      <?php get_template_part( 'content', get_post_format() ); ?>
    <?php endwhile; ?>

    by

    <?php if (have_posts()) : the_post(); ?>
      <?php get_template_part( 'content', get_post_format() ); ?>
    <?php endif; ?>

    I get what I was looking for. There’s another way to do it?
    What consequences may have by change the code directly?

Viewing 1 replies (of 1 total)
  • The topic ‘Show only last sticky post’ is closed to new replies.