WordPress.org

Ready to get started?Download WordPress

Forums

Excerpt not wrapping around thumbail (1 post)

  1. BeyondTheWatch
    Member
    Posted 1 year ago #

    Hey everyone,

    I'm trying to get some excerpt text to wrap around my thumbails but nothing seems to be working. I have other pages that call in posts and everything works (the excerpt text wraps around the thumbail). I've bascially copied the same .php file and reworked to call up a new category on a page but then it doesn't work.

    This is the page for example:

    http://www.beyondthewatch.com/anticipations/

    This is the PHP I'm using:

    <?php
    /*
    Template Name: 3 Column Page - Anticipations
    */
    ?>

    <?php get_header(); ?>

    <div id="container">

    <div id="featurebanner"><?php the_post_thumbnail( 'page-feature' ); ?></div>

    <?php include(TEMPLATEPATH."/sidebar_left.php");?>

    <div id="content" class="archive">

    <div class="postarea">
    <h1 class="pagetitle"><?php the_title(); ?></h1>
    <?php global $paged; ?>
    <?php $wp_query = new WP_Query(array('cat'=>1254,'posts_per_page'=>of_get_option('template_cat_posts'),'paged'=>$paged)); ?>
    <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>
    <?php global $more; $more = 0; ?>
    <div class="posted">
    <h2 class="entry-title">"><?php the_title(); ?></h2>
    <?php the_post_thumbnail('thumbnail'); ?>
    <?php the_content_limit(350,"Read More...");?>

    <div style="clear:both;"></div>
    </div>
    <?php endwhile; else: ?>
    <p><?php _e("Sorry, page not found.", 'organicthemes'); ?></p>
    <?php endif; ?>

    </div>
    <div class="pagination">
    <?php if (function_exists("number_paginate")) { number_paginate(); } ?>
    </div>

    </div>

    <?php include(TEMPLATEPATH."/sidebar_right.php");?>

    </div>

    <?php get_footer(); ?>

    Any help you can give would be awesome!
    --

    Steve.

Topic Closed

This topic has been closed to new replies.

About this Topic