• Hi!

    I’d like to know if there’s a way to set pages to be shown in a certain order on the sidebar menu.

    I want to create a blog on which part of the pages/posts should be shown in the usual reverse chronological order (from newest to oldest) but the other part should appear on normal chronological order (from oldest to newest).

    Is that possible?

    By the way, the “Post order” feature doesn’t make any difference in this case.

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter todaro

    (@todaro)

    Anyone?

    I’d like to know if there’s a way to set pages to be shown in a certain order on the sidebar menu.

    Yes.

    By the way, the “Post order” feature doesn’t make any difference in this case.

    Yes, it does.

    Use a conditional.

    <?php if (in_category('1') || in_category('2')) {
    php wp_list_pages();
    } else {
    php wp_list_pages('order=ASC');
    } ?>

    (that may need some investigating – it’s *something* like that anyway. This might help you.)

    Thread Starter todaro

    (@todaro)

    Thanks once more doddlebee. I’ll check it out.

    – Marcelo

    i used this (from a prev post – some were using this in concert with a plug-in, but i don’t think the plug-in is needed):

    go to:

    New condition (under wp-admin > Options > CQS):

    If is_home show -1 per page, ordered by ASC

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Listing pages backwards’ is closed to new replies.