{"id":7365,"date":"2009-11-26T20:31:47","date_gmt":"2009-11-26T20:31:47","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/list-pages-at-depth\/"},"modified":"2019-11-05T14:15:06","modified_gmt":"2019-11-05T14:15:06","slug":"list-pages-at-depth","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/list-pages-at-depth\/","author":123724,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.5","stable_tag":"1.5","tested":"5.2.24","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"List Pages at Depth","header_author":"Ben Huson","header_description":"","assets_banners_color":"c9221a","last_updated":"2019-11-05 14:15:06","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.benhuson.co.uk\/donate\/","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/list-pages-at-depth\/","header_author_uri":"https:\/\/github.com\/benhuson\/list-pages-at-depth","rating":0,"author_block_rating":0,"active_installs":70,"downloads":7281,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":{"1.5":"<p>Use PHP 5 style constructors.<\/p>","1.4":"<p>Sanitize widget fields when updating and add selected page classes.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"993125","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"993125","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"993125","resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"993125","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3","1.3.1","1.4","1.5"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2752,225,1753,40695,6689],"plugin_category":[43],"plugin_contributors":[77999],"plugin_business_model":[],"class_list":["post-7365","plugin","type-plugin","status-closed","hentry","plugin_tags-breadcrumbs","plugin_tags-cms","plugin_tags-navigation","plugin_tags-page-parents","plugin_tags-wp_list_pages","plugin_category-customization","plugin_contributors-husobj","plugin_committers-husobj"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/list-pages-at-depth_c9221a.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>A more powerful version of <code>wp_list_pages()<\/code> which allows you to specify a start depth.<\/p>\n\n<p>This means you can easily display secondary and tertiary navigation seperately from the primary navigation on your site.<\/p>\n\n<p>The <code>list_pages_at_depth<\/code> function accepts all the same arguments as <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/wp_list_pages\"><code>wp_list_pages<\/code><\/a>, but has an additional argument called 'startdepth'. Set this to be 0 to display primary navigation, 1 for secondary navigation etc. If you wanted to display secondary navigation with indented tertiary navigation you can use this in conjunction with the depth argument - simply set startdepth to 1 and depth to 2.<\/p>\n\n<pre><code>&lt;?php\n\nlist_pages_at_depth( array(\n    'startdepth' =&gt; 1,\n    'depth'      =&gt; 1\n) );\n\n?&gt;\n<\/code><\/pre>\n\n<p>The plugin also includes a widget so you can easily add it to your site.<\/p>\n\n<p>You can contribute and <a href=\"https:\/\/github.com\/benhuson\/list-pages-at-depth\/issues\">submit bug issues<\/a> on the plugin's <a href=\"https:\/\/github.com\/benhuson\/list-pages-at-depth\">GitHub page<\/a>.<\/p>\n\n<!--section=changelog-->\n<h4>1.5<\/h4>\n\n<ul>\n<li>Use PHP 5 style constructors.<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Add selected page classes: current_page_item, current_page_parent, current_page_ancestor.<\/li>\n<li>Allow list pages to be displayed on pages other than single pages.<\/li>\n<li>Sanitize widget fields when updating.<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Test up to WordPress 4.0<\/li>\n<li>Adhere to formatting standards and a little bit of code tidying.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Added support for 'ancestors_of' argument.<\/li>\n<li>Added support for other post types via 'list_pages_at_depth_post_types' filter.<\/li>\n<li>Widget includes 'widget_pages_args' filter.<\/li>\n<li>Tested compatibility with WordPress 3.3<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Now shows in all circumstances, not just on pages, if the startdepth is set to zero.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added widget.<\/li>\n<li>Fixed bug caused by duplicates when finding parent and child pages.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First Release.<\/li>\n<\/ul>","raw_excerpt":"A more powerful version of wp_list_pages() which allows you to specify a start depth.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/7365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=7365"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/husobj"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=7365"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=7365"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=7365"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=7365"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=7365"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=7365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}