• Resolved jowe

    (@jowe)


    I’d say I’m a long-time user of WordPress, but I don’t really hack around much. I’ve been using the simpleX theme (http://www.wpshoppe.com/themes/) for the past few weeks with no troubles. Today I decided to upgrade, with the automatic upgrade, and on the back-end everything seemed fine. However, when I went to visit the homepage, I ran into a BIG issue.

    It appears that the post loop is unending, whether on the homepage or on ANY Page (as defined by wordpress). The single post pages seem fine, but any page just has it’s content loop unending! 🙁 I even tried another theme and it didn’t seem to fix the problem.

    Here’s the main page: MarchingWeather.com/blog/
    Here’s a random Page: http://www.marchingweather.com/blog/cities/mid-atlantic/jackson-nj/
    And here is a single post, which appears fine:http://www.marchingweather.com/blog/2009/06/11/thursday-june-11-forecast-for-johnstown-pa/

    Here is the code for the index.php:

    <?php get_header(); ?>
    	<div id="main">
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small>Posted in <?php the_category(', ') ?> on <?php the_time('F jS, Y') ?>  by <?php the_author() ?> &ndash; <?php comments_popup_link('Be the first to comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('Edit', ' | ', ''); ?> </small>
    
    				<div class="entry">
    					<?php the_content('<span class="more">read more &raquo;</span>') ?>
    				</div>
    
    				<?php if(is_single()) {?><p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?></p><?php } ?>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    </div>
    
    <?php get_footer(); ?>

    And the page template:

    <?php get_header(); ?>
    	<div id="main">
    	<div id="content" class="narrowcolumn">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h2><?php the_title(); ?></h2>
    			<div class="entry">
    				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    
    				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    	<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    	</div>
    
    <?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>

    Thank you for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Actually don’t see any problem in index.php so wonder if you have a plugin causing the problem.

    Thread Starter jowe

    (@jowe)

    Huh. I deactivated a few plugins (Aside Shop and Quick Flickr Widget) and it was fine again. Rectivated them both and the site is still fine. Weird.

    Marking as resolved. Thanks for the tip!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help! When upgrading to 2.8, content loops infinitely’ is closed to new replies.