WordPress.org

Ready to get started?Download WordPress

Forums

page order field, my page order plugin not affecting pages order in sidebar (4 posts)

  1. mweier
    Member
    Posted 5 years ago #

    I've organized my pages by page order field and they show up in proper order in wp-admin. The site still shows them in alphabetical order.

    I installed "my page order" plugin which confirms they're ordered right but it's not affecting pages order in sidebar?

    What else should I be looking for? I'm using the default template in 2.7.

    Thanks!

  2. mweier
    Member
    Posted 5 years ago #

    I found this http://codex.wordpress.org/Template_Tags/wp_list_pages

    So I edited sidebar.php in the Appearance Editor -- it had
    ?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

    which I updated to this
    ?php wp_list_pages('sort_column=menu_order&title_li=<h2>Pages</h2>' ); ?>

    However that doesn't do anything (perhaps because I'm using widgets?). Maybe i was just editing the non-widget default.

    So then I looked at the Widgets panel and clicked Edit for Pages. Voila! This cleared it up. There's dropdown option there for sort order (which was set by title not order).

    Hopefully this helps someone else.

  3. Attento
    Member
    Posted 4 years ago #

    Thank you! Yes, it helped me.....I have been trying to figure that one out for the last hour!
    Big thanks,
    Adriana

  4. ohioguru
    Member
    Posted 4 years ago #

    MAN that helped me big time thanks

Topic Closed

This topic has been closed to new replies.

About this Topic