Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dnfisher

    (@dnfisher)

    Just a quick note. I resolved this fairly easily.

    Looking in my single post template, I noticed the use of the variables, which can be seen here:

    <?php get_header(); ?>
    	<div id="content">
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php $content = split("<!--more-->", $post->post_content);?>
    			<div class="post" id="post-<?php the_ID(); ?>">
    			<div class="left">
    				<?php echo apply_filters('the_content', $content[0]); ?>
    				</div>
    				<div class="right">
    					<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    					<p class="meta"><?php the_time(__('d M Y')) ?> <?php edit_post_link(__("edit"), ' | '); ?></p> 
    
    					<?php echo apply_filters('the_content', $content[1]); ?>
    				</div>
    			</div>
    
    	<div id="browse">
    			<div class="alignleft"><?php previous_post_link('%link') ?></div>
    			<div class="alignright"><?php next_post_link(' %link') ?></div>
    	</div>
    
    	<?php comments_template(); ?>
    
    	<?php endwhile; else: ?>
    
    		<p>Sorry, no posts matched your criteria.</p>
    
    <?php endif; ?>
    
    	</div>
    
    <?php get_footer(); ?>

    The content in this theme is split using a variable called $content, and the split denoted in the post by use of the <!-more-> tag. The image portion is formatted to the left using $content[0] and text formatted to a column using $content[1]. By simply adding another variable called $content[3] and including another <!-more-> tag, I managed to get the rest of the text content to use the remaining space under any post image.

    Revised version:

    <?php get_header(); ?>
    	<div id="content">
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php $content = split("<!--more-->", $post->post_content);?>
    			<div class="post" id="post-<?php the_ID(); ?>">
    			<div class="left">
    				<?php echo apply_filters('the_content', $content[0]); ?>
    				</div>
    				<div class="right">
    					<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    					<p class="meta"><?php the_time(__('d M Y')) ?> <?php edit_post_link(__("edit"), ' | '); ?></p> 
    
    					<?php echo apply_filters('the_content', $content[1]); ?>
    				</div>
                                <?php echo apply_filters('the_content', $content[2]); ?>
    			</div>
    
    	<div id="browse">
    			<div class="alignleft"><?php previous_post_link('%link') ?></div>
    			<div class="alignright"><?php next_post_link(' %link') ?></div>
    	</div>
    
    	<?php comments_template(); ?>
    
    	<?php endwhile; else: ?>
    
    		<p>Sorry, no posts matched your criteria.</p>
    
    <?php endif; ?>
    
    	</div>
    
    <?php get_footer(); ?>

    Hope that helps if anyone encounters the same problem.

    Thread Starter dnfisher

    (@dnfisher)

    The site is not live at the moment. I am editing using a local copy on XAMPP. I have however solved the problem by simply making an alternative stylesheet for IE. Thanks for your time.

Viewing 2 replies - 1 through 2 (of 2 total)