• Hi, I’m a complete novice and total newbie so please be gentle!

    http://www.brightonwaves.co.uk was set up for me by a friend and seemed all to be working ok.

    However I’ve got a problem with the Listings pages at the top of the sidebar. I want them ordered with the newest at the top. That seemed to be happening ok, until I added the September page which for some reason went second in the list. I can’t see any way of changing it in the control panel so it must be a code thing. But nothing should have changed.

    Any ideas what I’ve done?!

Viewing 4 replies - 1 through 4 (of 4 total)
  • If you go to Manage -> Pages and look over to the right, there is a field for “Page Order”.

    Have you tried setting that for your pages?

    Thread Starter censored

    (@censored)

    They’re all set to 0 – but always were all set to 0. So is it just a coincidence that they were appearing in the right order?

    Surely if I number them, I’ll have to re-number them all when I add a new one, as that would become 1, the previous 1 would be 2 etc etc?

    Well then I reckon you’ll want to see how your theme is listing those pages. Ideally, it is using wp_list_pages (documented here: http://codex.wordpress.org/Template_Tags/wp_list_pages )

    Check that link – there’s an option to list pages by post date which sounds like what you’re after?

    <ul>
    <?php wp_list_pages('sort_column=post_date&show_date=created'); ?>
    </ul>

    Thread Starter censored

    (@censored)

    Fantastic! Thank you! It’s a first delve into the code and it’s not quite as difficult as it looks… much appreciated

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Ordering Pages’ is closed to new replies.