WordPress.org

Ready to get started?Download WordPress

Forums

Listing pages backwards (5 posts)

  1. Todaro
    Member
    Posted 7 years ago #

    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.

  2. Todaro
    Member
    Posted 7 years ago #

    Anyone?

  3. Doodlebee
    Member
    Posted 7 years ago #

    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.)

  4. Todaro
    Member
    Posted 7 years ago #

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

    - Marcelo

  5. geniusinc
    Member
    Posted 7 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic