Support » Fixing WordPress » changing order of posts

  • Resolved sara1086

    (@sara1086)


    I was wondering if there is a way to change the order of posts. I want my website to be more like a website instead of a blog, so I was wondering if I could change it so that the recent post goes at the bottom instead of at the top of the home page. Does anyone know if this is possible? I’ve been trying to do research about it but didn’t find anything that was helpful.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Did you read this post?
    It’s possible, but it takes a little coding (of the index.php in your case). I’m sure there are plugins to do this too, but I can’t find one immediately.

    Thread Starter sara1086

    (@sara1086)

    This is my index.php:

    <?php get_header(); ?>

    <div id=”wrapper”>

    <div id=”content”>

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

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

    <div class=”post” id=”post-<?php the_ID(); ?>”>

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

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

    </div>

    <?php comments_template(); ?>

    <?php endwhile; ?>

    <p align=”center”><?php next_posts_link(‘« Previous Entries’) ?> <?php previous_posts_link(‘Next Entries »’) ?></p>

    <?php else : ?>
    <h2 align=”center”>Not Found</h2>
    <p align=”center”>Sorry, but you are looking for something that isn’t here.</p>
    <?php endif; ?>

    </div>
    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    where do you think I should put the code that they are talking about in that post that you referred me to?

    I think it’s between
    <div id="content">
    and
    <?php if (have_posts()) : ?>

    Thread Starter sara1086

    (@sara1086)

    THANK YOU SO MUCH!:):):)

    I just do a little ‘trial and error’ on you 😛

    Thread Starter sara1086

    (@sara1086)

    Since I have you here…LOL…my website looks different in firefox compared to internet explorer. In IE, the titles on the sidebar are different, the info on the pages seems to be slightly shifted to the left, and the footer does not appear. I fixed all the problems I had to validate the website, but it still looks different. Does this happen a lot?

    Thread Starter sara1086

    (@sara1086)

    I viewed some posts on it, and other people seem to have the same issue, but they suggested fixing the errors to make the site valid, which I did. Hrm.

    If the site is “valid” it should look the same in every browser, but my site also has some irritating things in IE6. I guess you’ll just have to recommend a real browser! That the footer doesn’t show up is something different though. That not all margins, etc. are the same is one thing that can be explained by browsers translating the css slightly differently, but a footer should no be missing in any browser. I don’t think I can help you with that, but perhaps you want to start a new thread about it.

    Thread Starter sara1086

    (@sara1086)

    okay..thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘changing order of posts’ is closed to new replies.