• Since upgraded, the index.php file will not display Content of my posts.

    The first Permalink Topic displays, but when I click on permalink, No post appears. The Post all appear in the Admin section.

    New Posts will Not display either.

    This is my blog URL: http://scubadiving-blog.com

    I have activated 4 different themes (including classic) & posts do not display for any theme.

    If I remove the code (from index.php) to display content, the Footer shows up on the page. However, when code to display content is included, the Footer does Not display on the page.

    This is the code in the index.php Thanks in advance for any assistance.

    <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(); ?>">
    	   <?php the_title(); ?></a></h2>
    
               <div class="datepost"><?php the_time('F jS, Y') ?>
              by <?php the_author() ?>          </div>
    
            <!-- Display the Post's Content in a div box. -->
               <div class="entry">
                   <?php the_content(); ?>
                </div>
    
            <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong>
            <?php edit_post_link('Edit','','<strong>|</strong>'); ?>
             <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
                </p>
    
          </div>   <!--end post stuff -->
    
    	<?php comments_template(); // Get wp-comments.php template ?>
    		<?php endwhile; ?>
    
    	<?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>
    
           <div class="navigation">
    	<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    	<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
           </div>   <!-- end navigation stuff -->
    
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
  • Thread Starter julieanne-vanzyl

    (@julieanne-vanzyl)

    I fixed this by deleting all my files, restoring an old database from a backup, then I re-installed wordpress 2.3.3 and used the original database.

Viewing 1 replies (of 1 total)
  • The topic ‘Upgraded & New Posts & Old Posts Not displaying’ is closed to new replies.