• I am trying to get the titles of posts to sit above the excerpt with the thumbnail to the left, the problem is I am not up to speed with how the loop system works, (more of a designer than developer) and any help getting the right lines of code together would be most appreciated.

Viewing 1 replies (of 1 total)
  • This tutorial may help, it is for the twenty ten theme!

    This is a none specific code block, the classes you would need to change to match your themes, and would show the image and excerpt or just the excerpt, in a post list:

    <div class="content">
        <?php /* Add a conditional image and excerpt output */ ?>
        <?php if(has_post_thumbnail()): // Start the condition ?>
        <div class="post-thumb" style="float:left; margin: 0 0 10px 0">
            <?php the_post_thumbnail(); ?>
        </div>
            <?php the_excerpt(); ?>
        <?php else : // Offer an alternative ?>
            <?php the_excerpt(); ?>
        <?php endif; // end the condition ?>
    </div><!-- content -->

    HTH

    David

Viewing 1 replies (of 1 total)
  • The topic ‘loop driving me insane’ is closed to new replies.