Flexi Pages Widget
Download Latest version: 1.5.2 (updated on 30 June 2009)
Features | Screenshot | Download | Installation | FAQ | Changelog | Donate
Flexi Pages Widget is a highly configurable widget to list pages and sub-pages in WordPress sidebar. User friendly widget control comes with plenty of options. ‘Flexi Pages’ widget can be used as an alternative to the default WordPress ‘Pages’ widget.
Features
- Option to display sub-pages only in parent page and related pages.
- Option to easily select and exclude certain pages from getting displayed in the list. Alternatively, only certain pages can be displayed by using the ‘include’ option.
- Option to include a link to the home page.
- Other options include title, sort column/order, hierarchical/flat format, show date.
- Multiple instances of the widget — unlimited instances of the widget can be added to the sidebar
- Instead of using the widget, the function
flexipages()can be called from anywhere in the template. All parameters that can be passed on to wp_page_menu() and wp_list_pages() can be passed into the flexipages() template function.
Screenshot

Flexi Pages Widget controls
Download
Latest version: 1.5.2.
Requires atleast WordPress version 2.7. Tested upto WordPress 2.7.1
The plugin can alternatively be downloaded from the WordPress plugin repository.
If you use a version of the WordPress prior to 2.7, please upgrade to the latest version of WP! If that is not possible, use the Flexi Pages Widget plugin for WordPress (v1.4.1).
You are free to use the plugin under terms specified by GPL.
If you like the widget and find it to be useful, please consider making a donation. Any amount will be thankfully accepted.
Installation
- Unzip the compressed file and upload ‘flexi-pages.php’ file (or ‘flexi-pages’ directory) directory to the ‘/wp-content/plugins/’ directory
- Activate the plugin ‘Flexi Pages Widget’ through the ‘Plugins’ menu in WordPress admin
- Go to WP Admin » Appearance » Widgets, add the ‘Flexi Pages’ widget into the sidebar and choose your options
- Multiple instances of the widget can be added to the sidebar.
Frequently Asked Questions
After selecting a few pages for exclusion, isn’t it possible to deselect all pages? There is always one page selected for exclusion.
It is possible to deselect all pages. Hold the ‘Ctrl’ key in your keyboard and click on the name of the page that’s not getting deselected.
What does ‘Show only related subpages’ and ‘Show only strictly related subpages’ mean?
When the option ‘Show only related subpages’ is selected, a subpage is listed only when the user visits the parent and sibling pages of the subpage. Thus, choosing this option will display the top level pages, children and siblings of the current page, and siblings of the parent page.
‘Show only strictly related subpages’ is same as the above except that siblings of parent page won’t be displayed when on a subpage
Is there an option to list only subpages and hide the parent pages?
Although such an option does not exist, the ‘Include’ option can be used to achieve this. Select ‘Include’ instead of ‘Exclude’ and select all the pages you want to be listed. Pages left out won’t be displayed.
Is it possible to display only the child-pages of a particular page?
Yes. In order to achieve this, select the ‘Include’ option, select just the child-pages to be listed (leave out all other pages), enable the ‘Show subpages’ option and select ‘Show all sub-pages’.
The widget treats a password protected page as any other page. Is there were a way to restrict the widget from showing password protected items until the password has been entered?
The built-in WP template functions `wp_page_menu()` and `wp_list_pages()` treat password protected pages as any other page, and don’t have an option to hide password protected pages until the password is entered. Flexi Pages Widget plugin depends on these functions, and until these functions provide an option to hide password protected pages, we can’t have it either.
The widget doesn’t list private pages at all. Is there a way to show private pages when the admin is logged in?
The built-in WP template functions `wp_page_menu()` and `wp_list_pages()` doesn’t list private pages and doesn’t have an option to show private pages. Flexi Pages Widget plugin depends on these functions, and until these functions provide an option to show private pages when the admin is logged in, it’s not possible for us to show private pages.
Change Log
2009-06-30: Version 1.5.2
- Bug fix (thanks to John J. Camilleri for the notification). Must upgrade.
2009-04-18: Version 1.5.1
- Bug fix. Title now doesn’t show when there is no items in the list.
- Frequently asked queries about private pages and password protected pages answered in FAQ.
2009-04-07: Version 1.5
- Unlimited instances of the Flexi Pages Widget can be added to the sidebar.
- New option to show date. This option, when selected displays creation or last modified date next to each page.
- The widgets options gets an overhaul. The list of options in the widget control page as of version 1.5.
- Title
- Sort column and sort order
- Exclude/Include a list of pages
- Show subpages (or list only top level pages). Show all subpages or only related subpages.
- List the pages in hierarchical or flat format. If hierarchical, choose depth.
- Show link to the home page
- Show date, and choose date format.
- The plugin references
wp_page_menu()function instead ofwp_list_pages(). Consequently, version 1.5 will work only with WordPress versions 2.7 and above.
2008-05-21: Version 1.4.1
- Bug fixes (issues regarding include/exclude sub-pages only with ‘List sub-pages only in parent and related pages in hierarchy’ option.)
2008-04-06: Version 1.4
- Fixed the odd behaviour when the widget is placed below the recent posts widget.
- Removed the redundant check box for home page link in widget controls
- Tested with WordPress 2.5; widget control box styling compatible with WP 2.5
2008-02-19: Version 1.3
- Multiple instances of the widget
- Added ‘Include pages’ option
flexipages()template function- Other minor improvements
2007-08-31: Version 1.2
- Added option to provide a custom text for the home page link
- Custom depth of ‘-3′ will display only parents, siblings and children along with top level pages. Parents’ siblings wont be displayed.
- Few other improvements and some optimization.
- Tested with WordPress 2.3-beta1.
2007-08-22: Version 1.1.2
- Fixed the missing
</li>tag for home link - Added class name (page_item, current_page_item) for home link
2007-08-17: Version 1.1.1
- bug fix
- tested with WordPress 2.2.2
2007-08-12: Version 1.1
- bug fix
2007-08-08: Version 1.0
- Initial release
download seems down.
Thanks. There seems to be a problem with the downloader plugin I’m using. Will try and fix it soon, till then, the plugin can be downloaded from http://wordpress.org/extend/plugins/flexi-pages-widget/
Thanks
Hi Srini,
I was wondering if it would be possible to make Flexi Pages include posts as well. My website consists of static pages, as well as blog posts and I would love for the Flexi Pages navigation tree to include my blog posts as well.
Is this possible?
Thanks!
Ulf
Hey Srini,
I use your Plugin on many blogs and it is awesome. Right now, I have the same problem like RayRay 4 comments above has. Even though I select the Parent Page it doesn’t show the corresponding subpages. I know, you mentioned there are problems with WP 2.8 but it works with the default theme in WP 2.8, but not with my theme. If you like to check:
http://www.architekturetc.de/wordpress/
If you click on “Büro”, it should show all subpages, but it won’t. All other links above are categories. Just FYI.
I appreciate your help and keep going the great work!
Strange, I just add some CSS Style for the current link to the Subpages and now it shows up.
Thanks for this awesome Plugin. BTW, is it possible or planned to add AJAX functionality to it, so the subpages open up without refreshing the whole new site if you click on a parent page, that would be great!