• I have recently upgraded my version of WP to 2.5 and all went fine except for 2 pages the home page and the media page. All the content is physcially in the db but will not appear in the homepage. However everything else does on other pages. I’m sooo confused

    Am using the right index file or could it be an issue with the .htaccess file.

    here is the website for reference oshawajazzandbluesfestival.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your pages load just fine. Can you see your posts in the WP admin? Does your index.php have a get_content argument? Somehow I also can’t access your archives, so there is definately something strange going on.

    Thread Starter capples3

    (@capples3)

    The posts are in the WP admin area yes which is why I can not figure out why there is no post showing in the public’s view
    It is strange though that all other pages content does appear.

    here is the index.php page in the themes folder for the theme that I am using.

    <?php get_header(); ?>
    
    <?php get_sidebar(); ?>
    
    	<!-- CONTENT -->
    	<div id="content_col" class="fl">
    
    		<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    		<h2><?php the_title(); ?></h2>
    
    		<?php the_content('Read the rest of this entry &raquo;'); ?>
    
    		<?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 endif; ?>	
    
    	</div>
    	<div class="clr"></div>
    	<!-- /CONTENT -->
    
    <?php get_footer(); ?>

    This page was not modified in any way when I uploaded the new version of WP it was not deleted or written over.

    Sorry, I have no more time and coding is not my thing entirely, but I find it strange that your endwhile comes within the div. Here’s my index.

    <?php get_header(); ?>
    <div id="content">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <div class="postmetadata">
    <?php if( function_exists('the_tags') )
    	the_tags(__('Browse: '), ', ', '<br />'); ?>
    <?php _e('Category:') ?> <?php the_category(', ') ?>
    <?php edit_post_link(__('Edit'),  ''); ?>
    <div class="postentry">
    <?php the_content(__('Continue reading'). " ‘" . the_title('', '', false) . "’ &raquo;"); ?>
    	</div>
    <div class="postmetadata"><?php the_time('j F Y') ?> <!-- <?php _e('by') ?> <?php the_author() ?> --></div>
    <?php comments_popup_link(__('Comment'), __('1 Comment'), __('% Comments')); ?>
    </div>
    </div>
    
    <?php endwhile; ?>
    
    <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>
    
    <?php else : ?>
    <div class="post">
    <h2 class="posttitle"><?php _e('Not Found') ?></h2>
    <div class="postentry"><p><?php _e('Sorry, no posts matched your criteria.'); ?></p></div>
    	</div>
    
    <?php endif; ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    As you can see a lot more div, no idea if that says anything.

    Btw, if you change to default theme, does that change anything? If not, it’s not your theme, but it almost has to be.

    Good luck and goodbye…

    Roy

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Content not appearing in homepage’ is closed to new replies.