WordPress.org

Support

Support » Themes and Templates » How to have the first post look different

How to have the first post look different

  • Daniel591992

    @daniel591992

    Hey, I have a theme that requires the first post of index.php to look different. Is there any way to achieve this?

    The first post needs to look like:

    <div class="boxcontents">
    <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>
    </div>

    and the next posts need to be like this:

    <div class="box">
    <div class="boxcontents">
    <h2 class="posttitle"><a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>
    </div>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to have the first post look different’ is closed to new replies.