Make WordPress Core


Ignore:
Timestamp:
08/13/2008 07:09:08 PM (15 years ago)
Author:
ryan
Message:

Add post_class() template function for emitting standard classes for post div. see #7457

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/index.php

    r8637 r8638  
    77        <?php while (have_posts()) : the_post(); ?>
    88
    9             <div class="post<?php sticky_class(); ?>" id="post-<?php the_ID(); ?>">
     9            <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    1010                <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    1111                <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
Note: See TracChangeset for help on using the changeset viewer.