WordPress.org

Forums

Listing pages alphabetically in the sidebar (12 posts)

  1. smartmouse
    Member
    Posted 9 years ago #

    What tags i have to add to this code

    <?php wp_list_pages(); ?>

    to make the sidebar to list pages alphabetically??
    Thank you.

  2. Pizdin Dim
    Member
    Posted 9 years ago #

    None, I believe. The default is by post_title ascending. Have you tried it without any arguments?

  3. smartmouse
    Member
    Posted 9 years ago #

    Ehm... sorry!! I mean i do not want to show them alphabetically! Now they are listed by name!
    I would like to custom their order... is it possible?

  4. Mandi
    Member
    Posted 9 years ago #

  5. Pizdin Dim
    Member
    Posted 9 years ago #

    Try the following after setting the page order in admin:

    <?php wp_list_pages('sort_column=menu_order'); ?>

  6. smartmouse
    Member
    Posted 9 years ago #

    How to order page in the admin panel ?
    I tried to change ID in the database but it did not work.

  7. smartmouse
    Member
    Posted 9 years ago #

    pizdin_dim you said "after setting the page order in admin"...

    Where?

  8. Pizdin Dim
    Member
    Posted 9 years ago #

    In WP 1.5.2, Manage > Pages > Page order (under page options)

  9. smartmouse
    Member
    Posted 9 years ago #

    I'm using WP 2.0.2 and i have Manage > Pages > ... and there is not any Paage options or Page order menu :(

    Am i wrong?

  10. smartmouse
    Member
    Posted 9 years ago #

    Please help me... i can't find it :(

  11. Chris_K
    Member
    Posted 9 years ago #

    Go to Manage -> Pages.

    Click "Edit" next to a page.

    Look over in the right side bar. See the "Page Order" there? You might have to expand it by clicking the little "+" on it.

    Enter a number and Save.

    Do that for each page, thus setting your order.

  12. smartmouse
    Member
    Posted 9 years ago #

    I have found it! ...and it worked!
    Thank you very much!
    I love you!! :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.