{"id":20585,"date":"2012-11-02T18:00:50","date_gmt":"2012-11-02T18:00:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/page-siblings\/"},"modified":"2025-03-14T09:39:21","modified_gmt":"2025-03-14T09:39:21","slug":"page-siblings","status":"publish","type":"plugin","link":"https:\/\/dzo.wordpress.org\/plugins\/page-siblings\/","author":654678,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.8","stable_tag":"trunk","tested":"4.9.29","requires":"3.0","requires_php":"","requires_plugins":null,"header_name":"Page Siblings","header_author":"Ionu\u021b Staicu","header_description":"","assets_banners_color":"f9f9f9","last_updated":"2025-03-14 09:39:21","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/page-siblings","header_author_uri":"http:\/\/iamntz.com","rating":5,"author_block_rating":0,"active_installs":20,"downloads":2640,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":620439,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3255786,"resolution":"1","location":"plugin"}},"screenshots":{"1":"Page Siblings metabox"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1794,32201,32202],"plugin_category":[],"plugin_contributors":[81459],"plugin_business_model":[],"class_list":["post-20585","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-post-type","plugin_tags-page-administration","plugin_tags-utils","plugin_contributors-iamntz","plugin_committers-iamntz"],"banners":{"banner":"https:\/\/ps.w.org\/page-siblings\/assets\/banner-772x250.png?rev=620439","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/page-siblings_f9f9f9.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/page-siblings\/trunk\/screenshot-1.png?rev=3255786","caption":"Page Siblings metabox"}],"raw_content":"<!--section=description-->\n<p>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:<\/p>\n\n<pre><code>News\n|\u2014 History\n|\u2014 Our Staff\n|\u2014\u2014 Employment Opportunities\n|\u2014 Our Company\n<\/code><\/pre>\n\n<p>Bonus: when you're listing posts on admin pages, you can also choose  to display only parents.<\/p>\n\n<h3>API<\/h3>\n\n<p>You can choose to disable some (or all!) functionality by using filters. These filters are as following:<\/p>\n\n<p><strong>Disable page siblings metabox completely:<\/strong><\/p>\n\n<pre><code>add_filter('iamntz\/page-siblings\/add-page-metabox', '__return_false')\n<\/code><\/pre>\n\n<p><strong>For <code>my-custom-post-type<\/code><\/strong><\/p>\n\n<pre><code>add_filter(\"iamntz\/page-siblings\/add-page-metabox\/post-type=my-custom-post-type\", '__return_false')\n<\/code><\/pre>\n\n<p><strong>Disable the dropdown that will allow you to filter page parents or page parents &amp; children<\/strong><\/p>\n\n<pre><code>add_filter('iamntz\/page-siblings\/add-hierarchy-column-filter', '__return_false')\n<\/code><\/pre>\n\n<p><strong>For <code>my-custom-post-type<\/code>:<\/strong><\/p>\n\n<pre><code>add_filter('iamntz\/page-siblings\/add-hierarchy-column-filter\/post-type=my-custom-post-type', '__return_false')\n<\/code><\/pre>\n\n<p><strong>Set the default value for the dropdown:<\/strong><\/p>\n\n<pre><code>add_filter('iamntz\/page-siblings\/add-hierarchy-column-filter', function() { return 'parents_only'; })\n<\/code><\/pre>\n\n<p><strong>For <code>my-custom-post-type<\/code>:<\/strong><\/p>\n\n<pre><code>\/\/ The allowed values are `all` and `parents_only`.\nadd_filter('iamntz\/page-siblings\/hierarchy-column-filter-default\/post-type=my-custom-post-type', function() { return 'parents_only'; })\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>page-siblings<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Done. You will see a box with page siblings when you edit a page<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>added a filtering option to page editing, so you can only display parent pages<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>tweaked code a little &amp; removed PHP notices &amp; warnings<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Updated readme<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>added correct sorting for pages (thanks Jakob for pointing this)<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>We shouldn't display filtering option on post types that aren't hierarchical!<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Version Bump<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>Added some filters to allow disabling some boxes<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>Fixed edgecase ACF compatibility<\/li>\n<li>Moved the metabox on the main screen (rather than on side)<\/li>\n<li>Added filtering<\/li>\n<\/ul>","raw_excerpt":"A metabox with all page edit (and any other hierarchal post types) that display an edit link to its siblings.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dzo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/20585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dzo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/dzo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/dzo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=20585"}],"author":[{"embeddable":true,"href":"https:\/\/dzo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/iamntz"}],"wp:attachment":[{"href":"https:\/\/dzo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=20585"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/dzo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=20585"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/dzo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=20585"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/dzo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=20585"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/dzo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=20585"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/dzo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=20585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}