WordPress.org

Ready to get started?Download WordPress

Forums

BE Subpages Widget
[resolved] Set Order (6 posts)

  1. figmund
    Member
    Posted 2 years ago #

    Hi Bill,

    It looks like the widget lists the subpages alphabetically. Is there a way to have it list them using the order I've assigned each page instead?

    Thanks!

    http://wordpress.org/extend/plugins/be-subpages-widget/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 2 years ago #

    Try adding this to your theme's functions.php file: https://gist.github.com/2779046

  3. figmund
    Member
    Posted 2 years ago #

    Excellent! Thanks so much for your help!

  4. DreamPress
    Member
    Posted 1 year ago #

    Hi, ik just placed the code into the functions.php but no results yet.

    Is there anything else i have to do in my theme files to get this function working?
    Maybe add some code in my page template were i use this now:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-pages') ) : ?>
        <?php endif; ?>

    Maybe its an idea to implement this function in the widget itself to make it more monkey proof? Like being able to choose your listing: alphabetical, on date or like the menu.

    Hope to hear from you.

  5. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    In the next version (which you can download here: https://github.com/billerickson/BE-Subpages-Widget ) the pages will automatically be ordered by menu order. If you want to order them by any other means, you can use the code I linked to above.

    I would need to see the code of your functions.php file (after adding the code) to determine what issue you're having. You can post it on pastie.org and link back here.

  6. M One
    Member
    Posted 1 year ago #

    Bill - installed the pending release version above.

    The first level pages follow menu order as expected HOWEVER their child pages are still listing alphabetically rather than in menu order.

    Is there a quick fix for this - ie so all pages and their children are listed in menu order? I ask because I really want to standardise on this plugin for a lot of sites and I'm launching one as we speak.

    Many thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.