Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.0   Updated Friday, February 20th, 2009 at 7:19pm

List Subpages Plugin for WordPress

This WordPress plugin generates a list of subpages for the page being viewed. You can use this plugin by inserting the trigger text in your page (where you want the list to appear), or by calling the function directly from your template file. One key feature of this plugin is that it can used outside the loop, which means you can display a list of subpages of the current page in your header, sidebar, or anywhere else. There are also several options available. You can change the sort method, exclude pages, adjust the page depth, show the date, and more.

Download

  If you have found this page useful, please consider donating. Thanks!

Installation

  • Download the above file
  • Rename dd-list-subpages.txt from .txt to .php and upload it to your plugins directory
  • Activate the plugin from the WordPress admin panel
  • Configure the options under the admin panel: Options – DDListSubpages

Change Log

  • 04-06-07 Version 1.0 – First release.

Usage

To display the list of subpages on your page, just add the trigger text to your page:

<!-- ddlsp -->

(If you are using the visual editor in WordPress, you may have to temporarily disable it to add in the trigger text)

You can also call the function directly from a template file with the following command:

<?php echo ddlsp_generate(); ?>

If you use this method, it does not have to be in your loop, which means you can display the list of subpages anywhere you like in your theme.

Whichever method you use, just remember that it only generates the list when viewing an actual WordPress page which has subpages.

Options

Here are the options available for this plugin under the WordPress admin panel. The options page also includes a ‘load defaults’ button.

Before List

This text is added before the list of pages.

After List

This text is added after the list of pages.

Sort Column

You can choose to sort the list by page title, menu order, page date, page modified date, page ID, page author, or page name (slug).

Sort Order

This lets you choose between an ascending or descending sort.

Excluded Items

This is a comma-separated list of page IDs you want to exclude from the list.

Included Items

This is a comma-separated list of page IDs you want to include. If you use this feature, only pages manually specified will be listed.

Page Depth

This is the depth of subpages that will be shown. The default is 1, and 0 means no limit.

Show Date

If enabled, the date will be shown after each page.

Date Format

If showing the date, this is the PHP date format that will be used.

List Title

This is an optional header for the list of pages.

  1. 129
    Anna

    Hi thanks for the plugin. I activated it in one of my sidebars. My problem is that after I click on a sub page link the sub menu disapeard and I would like it to always show in this particular sidebar even when I am on a subpage.

    That way you dont have to go back.
    thank you.

  2. 128
    tracy

    thanks…exactly what i was looking for…but i do need to modify it so that it shows a thumbnail (custom field) and a bit of an excerpt
    thanks so much

  3. can anyone tell me how can i install this plugin in wordpress…I am unable to install it. Pls. tell me step by step in brief

  4. Hello and thank you for your time and energy in putting this together! I have a question: I have a button called “Credits” and it has two child pages, “Film” and “Television.” Then, under “Film” I need a list of its subpages to show, and under “Television” I need its subpages to show as well. Currently I’m only getting “Films” and “Television” to show up under my “Credits” page. Is it able to show the “sub-sub-pages” as well as I drill down farther into my pages? Thank you!

  5. 125
    great plugin

    i am calling in my sidbar.php
    my question is it possible to dynamically change the name so that on the “about us” page i can have the title be “about us” and list sub pages, then when i display on “services” page have the title say “our services” sorry if this is basic php i am newbie
    thanks

  6. It’s excellent, but is it going to work on my new iMac??? ;-)

  7. 123
    Sean

    I wanted to pass the options for the list specifically from the function in the template so I modified the head of ddlsp_generate:

    function ddlsp_generate($options = array()) {
    if(!isset($options['before_list'])){
    $before_list = get_option(‘ddlsp_before_list’);
    }
    if(!isset($options['after_list'])){
    $after_list = get_option(‘ddlsp_after_list’);
    }
    if(!isset($options['sort_column'])){
    $sort_column = get_option(‘ddlsp_sort_column’);
    }
    if(!isset($options['sort_order'])){
    $sort_order = get_option(‘ddlsp_sort_order’);
    }
    if(!isset($options['exclude'])){
    $exclude = get_option(‘ddlsp_exclude’);
    }
    if(!isset($options['include'])){
    $include = get_option(‘ddlsp_include’);
    }
    if(!isset($options['depth'])){
    $depth = get_option(‘ddlsp_depth’);
    }
    if(!isset($options['show_date'])){
    $show_date = get_option(‘ddlsp_show_date’);
    }
    if(!isset($options['date_format'])){
    $date_format = get_option(‘ddlsp_date_format’);
    }
    if(!isset($options['title_li'])){
    $title_li = get_option(‘ddlsp_title_li’);
    }
    ///
    THere is probably a less redundant way to write this
    ///
    And now you can call it from the template with

    false)); ?>
    passing to the array any of the startup options

  8. Hey, thanks a lot for this plugin. It is exactly what I was looking for. Little input for future versions: it would be very nice, to integrate little thumbnails of pictures according to the particular subpages.

  9. This is a great little plugin, thank you!

  10. Hi, I just wanted to thank you. A few of your plugins have been EXACTLY what I was looking for. This plug in especially. Thank you VERY much, and keep up the good work.

  11. Anyone know where to put the code in answer 105? I really need this.

    Thanks in advance.

  12. If you would like to display a table of thumbnails for the child page, you might look into this plugin –

    http://wordpress.org/extend/plugins/autonav

  13. Great stuff, been using it for a while now. One thing: I’ve customized my version to add the sort option “menu_order,post_title“: the default setting for wp_list_pages, I think, and one which makes a lot of sense. This could be a useful addition to a new version.

  14. 116
    Chris

    Great plugin, seem to have problems getting it to work with permalinks – is there an error?

  15. it’s GREAT !!!

    Thanksss !!!!

  16. 114
    Ataraxy

    “The only suggestion I have is to have it show on the subpage as well as the page that has child pages.”

    I agree with this. I came across this plugin and it does nearly everything I was looking for, except that. Now I’m trying to figure out how to modify it to do that.

    Thanks for the plugin!

  17. 113
    vanni

    Hi. I’m a WP newbie, I am looking for a way to have sub-pages that are connected to a specific page, and i think this plugin allows this. I want to be able to display the links of the sub-pages in the left-hand column and keep them all visible as i visit each of the sub-pages. For eg. see this page at this WP site:
    http://www.joyent.com/products/publiccloud/

    Can i expect your plug-in to accomplish this?

  18. 112
    Jan

    This is a fantastic little plugin. The only suggestion I have is to have it show on the subpage as well as the page that has child pages.

  19. Thank you for making available a superb plugin that is easy to install and very functional in getting the job done. Much appreciated.

  20. Currently there is no support for displaying anything but the links to the pages. I will keep those ideas in mind though.

    I do get a lot of requests for features on all my scripts, and unfortunately I am not able to implement everything.

  21. 109
    Jessy

    Is there a possibility to display one of the custum fields in each list item after the link?

    something like:

    
    <ul>
    <li><a href="">page1</a> - value custom field of page 1
    <li><a href="">page2</a> - value custom field of page 2
    <li><a href="">page2</a> - value custom field of page 3
    </ul>
    

  22. 108
    Sebastian Cruz

    Hi, great plugin! is there a way to insert thumbnails in the list of the subpages?? thanks!

  23. This plugin has been tested, and works, in the latest release of WordPress – 2.8

    A few comments below mentioned displaying the sub-list during other events, but the purpose of the plugin is simply do display the child pages of the currently viewed page only. I will consider ideas for future updates though.

  24. hi nice article list great work and thanks for u sear this with us

  25. 105
    Paul Parenko

    This is how to get the whole children list, please add this as an example!

    post_parent){
    // will display the children of this top site
    $children = wp_list_pages(“title_li=&child_of=”.$post->ID.”&echo=0″);
    }else{
    // diplays only the children of
    //$children = wp_list_pages(“title_li=&child_of=”.$post->post_parent.”&echo=0″);

    if($post->ancestors)
    {
    // now you can get the the top ID of this site
    // wp is putting the ids DESC, thats why the top ID is the last one
    $ancestors = end($post->ancestors);
    $children = wp_list_pages(“title_li=&child_of=”.$ancestors.”&echo=0″);
    // you will always get the whole child list
    }
    }

    if ($children) { ?>

  26. Works nice and easy.
    Did exactly what I wanted!

  27. 103
    Darryl

    Hi,

    I am wondering, is there a way to make it so you can have more then one column. I would like to be able to change it from 1 column to 2 or even 3 columns. Any help would be great.

  28. Casey, I totally agree with what you say in #52.

    Anyone know how to do this?

    I use the php include method in a side bar. When you click on one of the sublinks, you are now on that page – which is a sublink, therefore the sublink list dissappears for the main page section.

    Anyone know of a way to click on a sublink and maintain the previous sublink list?

  29. 101
    Clair

    Another fix for those who wants to show the subpages of the parent rather than it disappearing when you go to the subpage itself

    In line 220, replace
    $thePostID = $wp_query->post->ID;

    with

    $thePostID = $wp_query->post->post_parent;
    if ($thePostID == 0) $thePostID = $wp_query->post->ID;

    I’ve only tested it if you have a page tree depth of 1 (that is, no subpages of subpages), because that’s all I needed it for

  30. 100
    leon

    would be good if it maintained the context.

    as in when you click on a subpage, the subpage’s class becomes current, and the subnav does not vanishes.
    at the moment it vanishes, braking browseable navigation

  31. Brilliant plugin. Looks great. Thank you.

  32. Same as what Tim said. I’ve placed the function call in side of a template. It displays great on the parent page, but once I go into one of the child pages, I lose the subpage listing.

    Same thing, need to show sibling pages.

    Thanks!

  33. 97
    Tim

    This is a great plugin and works perfectly, but is there any way of adjusting it to also show sibling pages? When I navigate to a subpage I need the subpage menu of the parent page to start there… any ideas?

  34. 96
    Raquel

    This works perfectly, exactly what I needed, thanks!

  35. A great plugin, works like a charm with 2.7.1!

  36. Is there a way to show comments for the pages listed?

    Like so:

    * abortion. 03/08/09 (7 comments)
    * domestic violence. 02/28/09 (5 comments)
    * online infidelity. 03/17/09 (1 comments)

  37. This plugin has been tested in the latest release of WordPress (2.7.1)

  38. Very effective and just what I needed. Thank you!

  39. Great plugin, thank you.

  40. 90
    vicky

    works great on my 2.7 version of wordpress

  41. 89
    coolguy99

    Thanx for the great plugin…..
    i have some doubt with the plugin,is it possible to have subpages horizontally just like this site do and also title short but not the original title.

    http://videos.smartdesis.com/telugu-online-movies-index-a/

    thanx for sharing the great plugin

  42. wow, excellent – works like a charm with my 2.5 installation. Will it also work with version 2.7?

    Thanx for sharing,
    Higgins

  43. 87
    ionut

    I’m interested if I could limit the number of subpages in any way, I have many subpages and I would like to show only the last 10 pages. I use subpages like post.

  44. 86
    paul

    thank you for saving me from the horror that is trying to style wp_list_pages, how they made it so bad i have no idea, but you just cannot seperate the stylings of the title from the contents of the li, or the contents of the UL…….. 10 hours later and i find this, wonderful!

  45. 85
    Michael

    Has anyone tried the plugin with 2.7?

  46. Great plugin…how would it work with categories?

  47. 83
    Zainab

    It would be cool to list descriptions of the subpage after each link.
    And better yet, list subpages of subpages. I’ve been looking for a plugin like that.

    For example:

    WRITING
    Welcome to my page about writing.

    SHORT STORIES
    Short Story 1 – This is about blah blah blah.
    Short Story 2 – Blah blah blah.

    POEMS
    Poem 1 – Blah blah blah

    It would be nice if you could make this. I’m sure many people (ahem, me) would benefit from it.

  48. 82
    Jaap

    I just can’t get it to work… I’m using WP 2.6 can that might be the problem?

  49. 81
    Demoniz

    Im using it for wordpress 2.6.2 but it seems nothing happens with the depth, im trying to change the number from the page depth from admin area but it always show all subpage list , it cannot change can you help me ?

  50. Now all we need is a way to extract subpage excerpts!

  51. hi
    now what i want is to show links list of that page’s child pages on that page.
    is it possible?

  52. 78
    Diego

    I’ve got a question:

    I’m using the <?php echo ddlsp_generate(); ?> bit inside a column on the theme…

    ..but it seems to show on every page, exept for at the very beggining (the “home” or the index.html page)

    Any suggestions to make it appear also on the very home page??

    I will be forever grateful to anyone who can assist me with this!

    Many thanks.

  53. I have found a simple solution for those who wish to put the list even when we are on a subpage.

    After the ddlsp code, just add the wp list pages code with depth of 2 to show the 1st level page and 2nd level page directory.

    
    <?php echo ddlsp_generate(); ?>
    <?php wp_list_pages("title_li=&child_of=$parent&depth=2" ); ?>
    

    An example of which I created for my website below :-

    http://www.mynetbizz.com/travelweb

  54. 76
    Reino

    I’ve a question, is there an option that the plugin will show the active page. Right now when you have 2 subpages under a page like “about”, you click a subpage and the menu will dissapear? Or am i wrong?

  55. Is it possible with this plugin to create a list of subpages with each li having specific arguments like, eg. pointing to an anchor instead of pointing to the url of the page?

  56. Excellent! Works a treat on 2.6 and K2. Marvellous. Thanks a lot.

  57. 73
    KermitJr

    Might want to change your bar at the top… I saw “Updated Friday, April 6th, 2007 at 4:16pm” and thought it was a year and a half old. Almost went past your AMAZING plugin.

    Thanks for the work.

  58. 72
    Vanessa

    Thanks! It’s working on 2.6.1 for me.

  59. Very very good plugin. I’ve been looking around for something like this for a long time. Is it possible to list subpages in one row instead of coolumn? It would take much less space in header if it could be in row.

    Tnx

  60. 70
    Joe Banks

    Huge fan of your SiteMap plugin. And now this one, too!

    Feature request: Ability to add an optional “excerpt” (custom field, perhaps) for a page, which gets printed after each item. I use this plugin for a quick index page, mostly.

    Example below — What comes AFTER the colon (perhaps the colon could be a custom character) is the “excerpt”:

    Pageandlink: Blah blah blah.

    Anotherpageandlink: Blah blah, blatty blah.

    AndAnotherpageandlink: Yessirree, blah blah, blatty blah. Bleep blorp.

  61. 69
    Jason

    Does this work in 2.6? When I install I don’t see any administrative options. Are you working on an update to 2.6?

  62. Can it be parametered? I’d like to use different settings of listing pages on two separate pages (like, having dates on one and depth of 2; not having dates on the other with depth of 1).

  63. It’s great plugin, I’m looging for sometimes ago, I’m going to install it. Thanks

  64. 66
    pablo

    great stuff. any chance that this will include a button for the TinyMCE editor in the future?

  65. thank you very much for your helpful plugins.

  66. thanks.

  67. How can I code the submenu to not overlap the top menu? http://www.abovethecrowdphoto.com/index.php (look on the services page)

  68. Thank you so much! I’m a noobie and the struggle with the php code was really eating into my writing time. Thank you for this plugin, it was exactly what I needed and really easy to use. bama :)

  69. The sublist doesn’t seem to work with private pages, even though the logged in user has the capabilities to read private pages.

  70. 60
    JakoThan

    Hi!
    Very nice plugin! Well done!
    But there is little problem… I really need a third level for my sub pages. So, it works, but the second level does not shown when the third level is active.
    Can you help me? PLEASE! :)

    Thanks so long!

    Thomas

  71. Hi, I would like to know how i could modify the ligne 273 :
    $content = preg_replace(‘/\s*\s*/i’, ““, $content);
    because I don’t want my links to be in a list, and this is the only ligne that I think could help me do that, but I don’t understand nothing to that strange html code.

  72. June: In WordPress 2.5 it is now called ‘Settings’. Look to the right of the page.

  73. Hi! I am currently using WP 2.5 and has become a nightmare xD
    Anyway I can’t find this anywhere in WP 2.5???

    “Configure the options under the admin panel: Options – DDListSubpages”

    Where is it located? thanks!!!

  74. 56
    scott

    great plugin!!!

    the change suggested in comment #41 worked great for me.

    i was having a problem getting pages without subpages to validate because of the empty tags.

    i just replaced the line
    $t_out = $before_list . $t_out . $after_list;
    with

    
    if ( $t_out != '' ){
      $t_out = $before_list . $t_out . $after_list;
    }
    

    this way, if there are not any sub pages, it doesn’t display anything.

  75. Okay, I’m apparently a moron. I can’t seem to get any of the configuration options to work. Where does one accomplish this? I’ve been modifying the code directly. Am I stupid? Probably, but please help anyway.

    
    // Set defaults if options do not exist
    add_option('ddlsp_before_list', '<ul>');
    add_option('ddlsp_after_list', '</ul>');
    add_option('ddlsp_sort_column', 'post_title');
    add_option('ddlsp_sort_order', 'asc');
    add_option('ddlsp_exclude', '');
    add_option('ddlsp_include', '');
    add_option('ddlsp_depth', 1);
    add_option('ddlsp_show_date', FALSE);
    add_option('ddlsp_date_format', 'l, F j, Y');
    add_option('ddlsp_title_li', '');
    

    This should keep the date from displaying, correct?

  76. Hey Dagon – you rock…every time I set up a site I spend ages rummaging around for plugins without much luck and after hours and hours normally end up at your site to see that you have already solved the problem. When am I going to learn to just come right here to begin with? Cheers a lot – you always seem to come up with the glue that holds unconventional uses of Wordpress together. You the man!

  77. Hi,
    I’d like to move the List Title before the ‘ul’ tag, in order to do not include it into the list. How can I modify the plugin file?

  78. 52
    Casey

    @Luke (#41, #44)
    I still get a disappearing sublist when I click on a subpage link… do you have a working version of this where the subpage list stays visible as long as you are in the “section” of the parent?

    (eg. fruit (parent) displays apples, oranges, pears… if you click pears, make the list stay visible. when in the veggies, show celery, carrots, peas and keep that list visible when on any of those veggie pages)…

    I think this is what most folks want – a dynamic list of child pages that stays visible until you change the parent (think section). In my case, I have the parents in a horizontal menu at the top… I want the sub page list to display in my sidebar, staying visible at all times until I click a different main page.

  79. 51
    Casey

    Hi, Aleister…
    is there some way to use the list subpages plugin so that when you click on one of the listed subpages, it still displays the list from the parent? currently, the list disappears (since the clicked link goes to a child that doesn’t have subs of its own).

    I’ve tried the code substitution suggested in #41 & #44 (Luke) but it doesn’t do what I describe above…

    I’d pay to have this working, as I have struggled with lots of methods (I’m showing this in my sidebar file) and wasted lots of time already.

    Please contact me for further info or a link to the site I am trying to develop.

    Thanks!

  80. Hi,is there any where that I can assign CSS to this plugin?

  81. 49
    misty

    Updates:

    1. Well, I had to remove the plugin(dd-list-subpages.php) because it causes the following warnings at Admin login, saving files and etc. The warnings prevent me from login.

    Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/plugins/dd-list-subpages.php:300) …

    Not sure how to fix this one.

    2. Given that fact that a thread may be extended for weeks or months, the post updated date info would be nice instead of creation date of a post or a page.

    Thanks.

  82. 48
    misty

    Okay, it’s working now. I have one question:

    I am using Post Updated plugin(Display notice/date/time of when a post was last updated. By Kaf Oseo.) Is there such a way that I can tweak it to show the last updated dates?

    Thanks.

  83. 47
    misty

    Uh, the \par’s are from WordPad editor. The file is clean now and I have activated the plugin.

    But not clear about how to add trigger text. Could you give an example please? thanks.

  84. 46
    misty

    Hi,

    I have copied dd-list-subpages into the Plugin directory and getting this error when trying to activate it:

    “Plugin could not be activated because it triggered a fatal error.”

    I’ve noticed that \par’s being added everywhere to the file After copied to the Plugin directory.

    By the way, regarding the 11-27-07 entry, there is a typO “ddspl_generate function” which is meant for “ddlsp_generate()”

  85. 45
    misty

    I have a page which has a couple of linked other pages on it. Currently, I have manually put in the dates for the linked pages. I am searching for a plugin that can show the dates and author just like what the following forum page does.

    http://www.weberforums.com/forum4.html&sid=f7db7635c083e86b48b7c5ede846ad3b

    Would this plugin work for my case?

    Thanks.

  86. Sorry ammendment, only replace $thePostID = $wp_query->post->ID;

    You still need the $wp_query bit.

  87. Good point :)

    You need to replace this code inside the ddspl_generate function:

    
    global $wp_query;
    $thePostID = $wp_query->post->ID;
    

  88. Hey Luke, where do we add the code you posted? Thanks a bunch!

  89. Just found a solution to a problem that some people have mentioned.

    
    if($wp_query->post->post_parent > 0)
    		{
    			$thePostID = $wp_query->post->post_parent;
    		}
    		else
    		{
    			$thePostID = $wp_query->post->ID;
    		}
    

    What this does is says if there is a post parent (page parent in this case, silly wordpress terminology), use the id of this parent to list the subpages from. Otherwise, if there is no parent page, use the current page id. Hope that helps.

    Very nice plugin by the way :)

  90. To asshat #39….the reason is obvious. Why the hell would you want to see the sub-navigation of a section you’re not even looking at? These aren’t drop-down menus.

    To the author….thanks for a sweet plug-in!

  91. 39
    alias

    I got to say, I like this plugin but the way its designed to only list subpages on pages with subpages is the most stupid thing i ever heard

    who would make a plugin to list only subpages on a page with subpages and not the rest of of the subpage list ? this plugin is really unusable as is, but i hope the creater will fix it and make it work the way it should.

    back to searching for a functional plugin

  92. 38
    alias

    how come when you click on a subpage listed the rest of the list disappears ? This would render the plugin rather useless no ?

  93. 37
    alias

    damn i know why its not working because i don’t have any sub pages doh!!

  94. 36
    alias

    the plugin itself isn’t working i get a blank list, using wp 2.3

  95. 35
    alias

    sorting isn’t working,

  96. How do I stop the plugin from saying “This page has the following subpages…” at the bottom of my subpages? I didn’t put the call in there and can’t find it in the plugin…

  97. Hello, very good plugin but I have a question : I hava a plugin ( Page Category Plus) with which I can assign pages to categories.

    Rather than listing subpages of a page, I would like to list pages & subpages inside a category.

    How can I modify the query to make this ?

    Thanks a lot !

  98. Hi! Works fine for me but with one problem:
    When i’m on a subpage and there are no more subpages the navigation is lost.

    Maybe there is a possibility to show the subpages of a page also on the subpage?

    Regards
    Mario

  99. Great plugin! Is there a way to place your plugin on a widget?

  100. 30
    Eddie

    And yes I have subpages on the page I’m trying to get this on just to note.

  101. 29
    Eddie

    I put in the trigger text into a page and nothing at all happens. Your plugin seems very easy to set up, just upload and use trigger text so I don’t see how I missed anything???

  102. Right now I have it set by default to depth of 2, how can I show depth of 1 on a different page without messing up the one that shows depth 2. Can I add that info inside the brackets?

  103. 27
    Mike

    Hello

    How can i add “nofollow” to the links?

    Thanks Mike

  104. 26
    Trevor

    How can I get the new links to not show up in the main top navigation? I want to be able to just add sub page links to different pages but not show up in the main nav

  105. 25
    Damian Taggart

    Is there a way to prevent the “before list” and “after list” HTML from being displayed on pages that don’t have a subpages?

    Thanks!

  106. I’m not seeing the list of subpages on the same level as the current subpage when on a subpage. It works find on pages. Is there a setting that you have to change to see it? (I’m using the php call, if that helps).

  107. Scott: That plugin works a bit differently I believe, although I have not used it.

  108. So, does this plugin work like* the one mentioned above (http://www.webspaceworks.com/resources/wordpress/30/)?

    Does if dynamically list subpages changing he list (in the sidebar) per the current page being shown?

    Thanks.

  109. Manly: It might help to be a little more specific.

  110. plug in doesnt work for me.

  111. nice! would be nice if this supported multi-column output like some of your other plugins.

    However, doesnt appear to be a minor change as I think one would have to use get_pages() instead and traverse manually.

  112. Donna: That would be possible, but it would require a decent amount of modifications. Unfortunately due to the number of requests I receive, I am not able to create custom versions for everyone.

  113. Would it be possible to make this work like your form plugins where you can have more than one sublist options page? So, and and so forth…

    This would be extremely useful to customize how this works for a “press releases” page (show by date) versus some other kind of page where you would want to order by menu order or something.

    As always, great work!

  114. Gigi: You must give it the ID of a page with sub-pages, and the sub-pages will be listed on that page. If you just give it the ID of a sub-page, it will not work properly.

  115. Wow. Such a great and easy plugin. Even works with K2.

  116. 14
    Gigi

    This plugin is wonderful and seems to work perfectly. (wordpress 2.2 for me)

    Only when i try to INCLUDE a specific subpage with its ID it does not work.
    Do you know why ?

  117. Ruzel: This plugin only lists child-pages of the current page.

  118. This is a great plugin. I’m not really sure how it’s different from wp_list_pages(), but regardless, the code is solid. If anyone came here, like me, though, looking for a way to list sibling pages, check this code:

    http://www.webspaceworks.com/resources/wordpress/30/

  119. Stephan: Thanks for the heads up – fixed ;)

  120. I just came across your neat plugin. However, I have a suggestion that has nothing to do with it. :)
    Recently I changed my browser’s default background color and font to something else than the default white and Times New Roman to see who has set it on their website and who forgot it. And you… yeah, go figure. ;) It’s interesting how many websites (and even some of the big ones) forget it and the sites look really crappy then.

    You might wanna set a body background color in your stylesheet. ;)
    Cheers!

  121. 9
    Byron

    ok thanks :)

  122. Byron: This plugin only works on pages that have sub-pages.

  123. 7
    Byron

    Hi,

    I’m come to the same roadblock as Ash.

    I have an About page that displays 6 of its child page links in the sidebar. Once I go to one of the child pages, the list in the sidebar is gone ie. it doesn’t display its sibling pages any more.

    I can see why as I’m is no longer on a page with subpages. Would there be a workaround?

    Here’s hoping and many thanks for the plugin :)

    Byron

  124. Ash: It should do that actually. Even if you are on a sub-page already.

  125. Hi,
    I am looking for a plug in that will display subpages in a heirachy. EG. “Page one” has seven subpages. Each “subpage” has “100 sub-sub pages” and each sub-sub page has “10 sub- sub-sub pages” Does this plug in order these and how does it display if so?

    CVheers
    Andy

  126. This is a really handy plugin!

    I have a question though, would it be possible to view the list of subpages if you are viewing a subpage from that list?

  127. Jordan: I will keep that in mind for all my plugins actually :)

  128. The only suggestion I have for the plugin is on the admin page, you have “load default options,” and then “update options.” Most forms will have a submit/reset (in that order) so I noticed that I will keep going to “load default options” rather than update options. Not sure if anyone else would prefer it that way, but just figured I’d mention it.

    Otherwise nice plugin =)

  129. Thank you!!!!

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.