WordPress.org

Forums

Posts on Home page in Wrong order? (1 post)

  1. iamsgf
    Member
    Posted 6 years ago #

    Hi All,

    I just upgraded to 2.7.1 but now on my home page all my posts are in the wrong order. When I add a new post it is adding it to the bottom of the list rather than the top. An also on the recent posts widget of the left it is showing them in reverse order as well.

    In the theme it has the following code:

    <?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post">
    
    			<h1 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    				<div class="right-Block">
    					<?php ratings_table(); ?>
    				</div>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    
    				</div>
    
    				<div class="postinfo">
    					<div class="alignleft"> <?php the_category(', '); ?></div>
    					<div class="p_comments"><?php comments_popup_link('Add comments', '1 comment', '% comments'); ?></div>
    				</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 : ?>

    Which all looks right to me.

    Can someone point me in the right direction please.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.