
a few expanded pages with default theme, showing nested pages
This is a very simple plugin that uses Javascript to form a collapsable set of
links in the sidebar for the pages. Every page corresponding to a given
parent page will be expanded.
It is largely based off of my Collapsing Pages and Collapsing Pages
plugins.
2.0.3 (2024.01.01)
2.0.2 (2023.12.01)
2.0.1 (2023.06.16)
2.0.0 (2023.03.17)
1.0.1 (2016.05.09)
1.0 (2015.08.12)
If using the manual version, you can pass options either as an array, or using
the query style, just like for other wordpress functions such as
wp_list_pages
$defaults=array(
'title' => __('Pages', 'collapsing-pages'),
'sortOrder'=> 'ASC' ,
'sort'=> 'pageName' ,
'defaultExpand'=> '',
'expand' => 0,
'depth' =>-1,
'inExcludePage' => 'exclude',
'linkToPage' => true,
'inExcludePages' => '',
'showPosts' => false,
'animate' => 0,
'useCookies' => true,
'postTitleLength' => 0,
'showTopLevel' => true,
'currentPageOnly' => false,
'debug' => false,
);
collapsPage('animate=true&sort=ASC&expand=3,inExcludePages=about')
This will produce a list with:
* animation on
* shown in alphabetical order
* using images to mark collapsing and expanding
* exclude page about
I use this plugin in my blog at http://blog.robfelty.com
Currently this plugin relies on Javascript to expand and collapse the links.
If a user’s browser doesn’t support javascript they won’t see the links to the
posts, but the links to the pages will still work (which is the default
behavior in wordpress anyways)