Example #1
0
        post_class();
        ?>
>
					<h2 class="entry-title"><a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0'));
        ?>
" rel="bookmark"><?php 
        the_title();
        ?>
</a></h2>
					<div class="entry-meta">
						<?php 
        twentyten_posted_on();
        ?>
					</div><!-- .entry-meta -->
					<div class="entry-content">
<?php 
        if (post_password_required()) {
            the_content();
        } else {
            ?>
						<div class="gallery-thumb">
<?php 
            $images = get_children(array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999));
            $total_images = count($images);
            $image = array_shift($images);
            $image_img_tag = wp_get_attachment_image($image->ID, 'thumbnail');
            ?>
Example #2
0
						<div class="entry-utility">
							<?php twentyten_posted_on(); ?>
							<span class="meta-sep">|</span>
							<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
							<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
						</div><!-- .entry-utility -->
					</div><!-- #post-## -->

			<?php /* How to display all other posts. */ ?>

				<?php else : ?>
					<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
						<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

						<div class="entry-meta">
							<?php twentyten_posted_on(); ?>
						</div><!-- .entry-meta -->

				<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
						<div class="entry-summary">
							<?php the_excerpt(); ?>
						</div><!-- .entry-summary -->
				<?php else : ?>
						<div class="entry-content">
							<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
							<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
						</div><!-- .entry-content -->
				<?php endif; ?>

						<div class="entry-utility">
							<?php if ( count( get_the_category() ) ) : ?>
Example #3
0
function wcb_entry_meta()
{
    twentyten_posted_on();
}