Viewing 1 replies (of 1 total)
  • Thread Starter jacaldwell

    (@jacaldwell)

    this is probably a really dirty way of doing things, but here’s what I did….

    loop-page.php:

    from:

    foreach( $mypages as $page ) {
    $content = $page->post_excerpt;
    if ( ! $content ) // Check for empty page
    continue;

    $content = apply_filters( ‘the_content’, $content );
    ?>
    <h4>ID ); ?>”><?php echo $page->post_title; ?></h4><div class=”entry”><?php echo $content; ?>

    </div>

    To:

    foreach( $mypages as $page ) {
    $content = $page->post_excerpt;
    if ( ! $content ) // Check for empty page
    continue;

    $content = apply_filters( ‘the_content’, $content );
    ?>
    <h4>ID ); ?>”><?php echo $page->post_title; ?></h4>
    <div class=”entry”>
    ID ); ?>” border=”0″><?php echo get_the_post_thumbnail( $page->ID ); ?>
    <?php echo $content; ?>
    </div><div style=”visibility: hidden”><hr></div>

    The hidden HR is because I couldn’t make the lines break between child page titles/images.

    Then in the css added:

    img.wp-post-image,
    img.attachment-full,
    img.attachment-large,
    img.attachment-medium,
    img.attachment-thumbnail {
    display: block;
    width: auto;
    height: 150px;
    float: left;
    vertical-align: top;
    padding-right: 20px;
    }
    #content-blog img.wp-post-image {
    margin: 0 auto;
    }
    .entry {clear:both;}

Viewing 1 replies (of 1 total)
  • The topic ‘Features Image w/ Excerpt’ is closed to new replies.