WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Page order in sidebar (6 posts)

  1. lornapeck
    Member
    Posted 5 years ago #

    A month ago you helped me figure out how to get my pages to appear in a particular order on my menu tabs.

    I have since changed my theme and now am displaying pages only in the right sidebar. The first-level pages appear only in alphabetical order, no matter what I do. I've specified 1, 2, 3, etc., on the Edit Page, but nothing changes. I even tried the solution you gave me last time (embedding sort_column=menu_order into the wp_list_pates function). No luck. I looked for a wp_page_menu function and cannot find one. I even created one in the Sidebar.php file, just below the wp_list_pages function. Still nothing changed.

    Can you help?
    Thanks

  2. lornapeck
    Member
    Posted 5 years ago #

    Anybody out there? I really need to figure out how to place my first-level pages in a prescribed order in the right sidebar. Thanks for any help you can offer.

  3. esmi
    Forum Moderator
    Posted 5 years ago #

    Use either:

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

    or

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

  4. lornapeck
    Member
    Posted 5 years ago #

    Thanks for your reply, Esmi. I tried both and neither worked. Is a puzzlement.

  5. lornapeck
    Member
    Posted 5 years ago #

    Oh, for goodness' sake--will somebody just shoot me now? I contacted the designer of the theme I'm using and he suggested that there might be a "switch" in the Widget section of Appearance. Duh! Sometimes I forget to look for the obvious solution!

    Anyway, problem solved. Thanks, Esmi, for your help.

  6. Gustav2nd
    Member
    Posted 5 years ago #

    Hi lornapeck

    Thanks for your post! I had been pulling out hair for about an hour, before I read your post.

Topic Closed

This topic has been closed to new replies.

About this Topic