The Pages-Children plugin now works with any post or taxonomy type which is setup as hierarchical.
Personally I find the WordPress Pages management somewhat lacking. When dealing with a simple list of About Us, Contact Us, etc. pages the interface works fairly well. But when you have a client who has 15+ levels of sub-pages and each level contains some 50+ pages the interface quickly breaks down in it’s usefulness.
So I put together a plugin to help manage this a little better. The new plugin, pages-children, helps to filter the post type or taxonomy list showing only a single level of at a time. That is it really. There is no admin interface or settings. Just through the power of the WordPress actions and filter the page content can be altered. Powerful stuff.
- Upload the extracted plugin folder and contained files to your
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Navigate to any Pages admin screen. The default is to list only top-level pages. Look for the link appended to the page title in column 1 to access lower level pages
Часто задаваемые вопросы
- Does the plugin change or modify any WordPress core file?
NO! This is the first rule of plugin development. Never ever change or touch core files, settings or database schema.
- I didn’t like the plugin so I deactivated it. But my Pages listing is still messed up
Not possible. Double check that you deactivated the ‘pages-children’ plugin. When active the plugin uses filters to alter the way the page listing is displayed. So once deactivated these filters are no longer used. See first question about changes to core WP code.
- Does the plugin work on other post types?
YES. As of version 1.4 the plugin now works with any custom post type which is setup as hierarchical.
- Does the plugin work on Taxonomies?
YES. This was added in version 1.5. now taxonomies defined as hierarchical will be presented similar to post types, one level at a time.
- I’m using an admin theme and the plugin stopped working
I’ve only tested the plugin using the default WordPress admin interface. Note the plugin relies on some specific structures of the output tables used for the listing. If the admin theme you are using changes this then my plugin code will no longer work. Sorry.
- I’m using the WP-ecommerce plugin and Pages-Children stopped working. What can be done?
Not much. For some reason the WP-ecommerce plugin effects the logic of the Pages-Children plugin. I’ve not been able to figure out the conflict. But continue to investigate.
Нет отзывов об этом плагине.
Участники и разработчики
«Pages Children» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:Участники
- Corrected small error for undefined var. Thanks Dharmaraj.
- Test for WordPress 3.9
- Minor bug. Fixed issue with taxonomy nested items not working on 3.7 and newer. Thanks Euan!
- Also checked UI functionality for WP 3.8.
- 2012-03-03: Minor bug fixes when mixed Published and Draft Pages. The bug prevented getting down to or moving up the hierarchy if the child or parent were in draft status.
*2011-08-03: Minor bug fixes to declare unset variables. Thanks to the many users of my plugin who reported these issues. Note these are Warning not errors.
Added more logic on the Taxonomy Terms management screen. Have correct the pager logic. In previous versions the pager considered all the terms within the taxonomy. Now the pager is just used for the level of terms displayed. Also, on the Add new term form the dropdown for parent is now set to the parent term being displayed.
*2011-07-01: Added support for any taxonomies which are defined as hierarchical.
- 2011-06-29: Added support for any post type which is defined as hierarchical.
- 2011-06-28: Fixed issues which effected the Media Library listing in WordPress 3.1.3
- 2011-01-25: Fixed a bug reported https://wordpress.org/support/topic/plugin-pages-children-wont-return-to-top-level-pages?replies=2 abut not allowing return to top-level pages listing. This was a bug in the cookie logic. This release patches that bug.
- 2011-01-23: Set cookie to remember where in the page levels you are. This helps when leaving the Pages section and returning. Also, when adding a new Page, the Parent dropdown is automatically set based on are/where you are in the Page levels.
- 2011-01-16: Fixed bug in WP version compare logic. Basically uploaded the wrong version of the initial file. Apologies.
- 2011-01-14: Initial release