images in loop

This commit is contained in:
sjurher committed 2011-07-31 20:31:49 +02:00
1 parent ea916587ec
commit 599d8e9ebd
2 files changed
+21 -1

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ if ($news->have_posts()) : while ($news->have_posts()) : $news->the_post(); ?>
<h2><a href="#"><span class="frontbox" src="#hidpos-<?php the_ID(); ?>" height="420" title="<?php the_title(); ?>"></span><?php the_title(); ?></a><a href="<?php the_permalink(); ?>" rel="bookmark" ></a></h2> <h2><a href="#"><span class="frontbox" src="#hidpos-<?php the_ID(); ?>" height="420" title="<?php the_title(); ?>"></span><?php the_title(); ?></a><a href="<?php the_permalink(); ?>" rel="bookmark" ></a></h2>
<p class="meta">Posted on <?php the_time('F jS, Y'); ?></p> <p class="meta">Posted on <?php the_time('F jS, Y'); ?></p>
<div id="hidpos-<?php the_ID(); ?>" style="display:none"><a href="#"><span class="frontbox" src="#hidpos-<?php the_ID(); ?>" height="420" title="<?php the_title(); ?>"></span><?php the_content("lol", true); ?></a></div> <div id="hidpos-<?php the_ID(); ?>" style="display:none"><?php the_content(); ?></div>
<p><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', '); ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Com &#187;', '% Comments &#187;'); ?></p> <p><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', '); ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Com &#187;', '% Comments &#187;'); ?></p>
</div> </div>
Executable
+20
View File
@@ -0,0 +1,20 @@
<?php while ( have_posts() ) : the_post(); ?>
<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="loop-image">
<?php echo get_the_post_thumbnail( $post->ID, array (525, 9999) ); ?>
</div>
<div class="entry-meta">
<?php twentyten_posted_on(); ?>
</div><!-- .entry-meta -->
<div class="entry-content">
<?php the_excerpt(); ?>
</div><!-- .entry-content -->
</div><!-- #post-## -->
<?php endwhile; ?>