• scooby

    (@scooby)


    I just upgraded from 2.3 to 2.5 and everything is good except that my posts are not showing up on my home page.. I have installed wordpress files to a directory called “blog” and changed the settings to have my home page in the root directory outside of the “blog” directory..

    I am using this code to pull out the info:

    <?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><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div>
    
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', ''); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    
    			</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.
    
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>

    All that shows up on the home page is the sidebar links for the blog and the search box with the message saying, “Sorry, but you are looking for something that isn’t here.” (code is from index.php in default theme directory)

    Have I some got some incorrect coding?

Viewing 5 replies - 1 through 5 (of 5 total)
  • kangean

    (@kangean)

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
    <small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>

    <div class=”entry”>
    <?php the_content(‘Read the rest of this entry »’); ?>
    </div>

    <p class=”postmetadata”><?php the_tags(‘Tags: ‘, ‘, ‘, ”); ?> Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>

    </div>

    <?php endwhile; ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
    <div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
    </div>

    <?php else : ?>

    <h2 class=”center”>Not Found</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.

    <?php include (TEMPLATEPATH . “/searchform.php”); ?>

    <?php endif; ?>All that shows up on the home page is the sidebar links for

    Thread Starter scooby

    (@scooby)

    what are you trying to say here??

    sloppi

    (@sloppi)

    I had the same problem.
    I think the problem was the plugin “Category Visibility-RH Rev”. When I deactivated it, my posts appeared on my homepage.
    Give it a try.
    /stm.

    thank you sooo much sloppi!!! this was driving me crazy, but your post was exactly what i needed.

    I too just encountered this issue. I search for my issue on this forum, found @sloppi ‘s resolution, deactivated all plugins and my blog’s on my homepage reappeared. Next, by trial and elimination, I discovered it was the Event Calendar plugin causing my issue. (Many thanks to Sloppi!)

    I deleted this plugin and reinstalled it, thinking something got corrupted along the way (I’ve been using this plugin without issue for several months now). After doing so, I activated the event calendar plugin again and got the same resulting error message: sorry, you are looking for something that isn’t here.

    That’s where I am currently. Any suggestions? My problem began when I was dropping some database tables no longer in use. I did a backup prior to my dropping these tables and have since resinstalled the backup (so the tables I originally dropped are back). Still, same issue.

    Help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blog home page not showing posts..’ is closed to new replies.