WordPress.org

Ready to get started?Download WordPress

Forums

Page navigation - folding menu plug-in (3 posts)

  1. jpmcc
    Member
    Posted 8 years ago #

    I've written a simple plug-in to create 'folding' hierarchical Page menus. Initially only the highest level menus are displayed - clicking on an entry reveals the next level down and so on.

    The plug-in is tiny and works by creating an exclude= parameter for wp_list_pages, which means it should be compatible with most themes. I've tested it with WP 1.5.1 and 2.0 RC1. You can find out more at http://jpmcc.blogdns.org/index.php/publications/jp_menu_page_condense/

    Hint to to the developers - it would be great if this functionality was built into wp_list_pages, e.g. by setting depth=-1

  2. jpmcc
    Member
    Posted 8 years ago #

    I've posted a new version of this and changed its name to Fold Page Menus as this describes more accurately what it does :-)

    Full details at the new page http://jpmcc.blogdns.org/index.php/software/fold_page_menus/

    John

  3. jhenry
    Member
    Posted 8 years ago #

    Nice plugin. I'm running WP 2.01, with date/name based permalinks. In order to get the plugin to work, I had to change line 40 from this:


    global $id, $wpdb;

    to this:


    global $post, $wpdb;
    $id = $post->ID;

    -Justin

Topic Closed

This topic has been closed to new replies.

About this Topic