plugin-icon

Page Siblings

作者:Ionut Staicu·
A metabox with all page edit (and any other hierarchal post types) that display an edit link to its siblings.
评级
5/5
版本
1.0.8
活跃安装
20
最后更新
Mar 14, 2025
Page Siblings

Ever had to manage a WP install with many pages and subpages? This plugin does nothing more than adding a metabox to every post type that is hierarchical (that is pages and any other custom post type!) with a list of all page siblings, starting with the parent, so you can have:

News |— History |— Our Staff |—— Employment Opportunities |— Our Company

Bonus: when you’re listing posts on admin pages, you can also choose to display only parents.

API

You can choose to disable some (or all!) functionality by using filters. These filters are as following:

Disable page siblings metabox completely:

add_filter('iamntz/page-siblings/add-page-metabox', '__return_false')

For my-custom-post-type

add_filter("iamntz/page-siblings/add-page-metabox/post-type=my-custom-post-type", '__return_false')

Disable the dropdown that will allow you to filter page parents or page parents & children

add_filter('iamntz/page-siblings/add-hierarchy-column-filter', '__return_false')

For my-custom-post-type:

add_filter('iamntz/page-siblings/add-hierarchy-column-filter/post-type=my-custom-post-type', '__return_false')

Set the default value for the dropdown:

add_filter('iamntz/page-siblings/add-hierarchy-column-filter', function() { return 'parents_only'; })

For my-custom-post-type:

// The allowed values are `all` and `parents_only`. add_filter('iamntz/page-siblings/hierarchy-column-filter-default/post-type=my-custom-post-type', function() { return 'parents_only'; })
免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 4.9.28
这个插件是可用的下载,适用于您的站点。