{"id":20581,"date":"2012-11-05T16:31:18","date_gmt":"2012-11-05T16:31:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/subpages-expand\/"},"modified":"2025-03-26T22:55:48","modified_gmt":"2025-03-26T22:55:48","slug":"subpages-expand","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/subpages-expand\/","author":9117323,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.20","stable_tag":"1.20","tested":"6.7.5","requires":"3.4.1","requires_php":"","requires_plugins":null,"header_name":"Subpages as Expandable Links Shortcode","header_author":"HBJitney, LLC","header_description":"","assets_banners_color":"","last_updated":"2025-03-26 22:55:48","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/hbjitney.com\/subpages-expand.html","header_author_uri":"http:\/\/hbjitney.com\/","rating":5,"author_block_rating":0,"active_installs":80,"downloads":4459,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.05":{"tag":"1.05","author":"salubrio","date":"2012-11-08 18:04:04"},"1.05a":{"tag":"1.05a","author":"salubrio","date":"2012-11-09 13:27:06"},"1.07":{"tag":"1.07","author":"salubrio","date":"2012-12-07 22:39:34"},"1.09a":{"tag":"1.09a","author":"salubrio","date":"2013-02-04 18:24:06"},"1.11":{"tag":"1.11","author":"salubrio","date":"2013-04-12 19:46:29"},"1.20":{"tag":"1.20","author":"salubrio","date":"2025-03-26 22:55:48"}},"upgrade_notice":{"1.20":"<p>Verified it works on WP 6.7.2; fixed embarrassing typo<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":1668876,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":1668876,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.05","1.05a","1.07","1.09a","1.11","1.20"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":621316,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":621316,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"<p>Shortcode in parent post<\/p>","2":"<p>Public view showing each subpage's title with one expanded<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[839,202,1753,243,749],"plugin_category":[43,59],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-20581","plugin","type-plugin","status-publish","hentry","plugin_tags-effect","plugin_tags-jquery","plugin_tags-navigation","plugin_tags-pages","plugin_tags-text","plugin_category-customization","plugin_category-utilities-and-tools","plugin_committers-salubrio"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/subpages-expand\/assets\/icon.svg?rev=1668876","icon":"https:\/\/ps.w.org\/subpages-expand\/assets\/icon.svg?rev=1668876","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/subpages-expand\/assets\/screenshot-1.png?rev=621316","caption":"<p>Shortcode in parent post<\/p>"},{"src":"https:\/\/ps.w.org\/subpages-expand\/assets\/screenshot-2.png?rev=621316","caption":"<p>Public view showing each subpage's title with one expanded<\/p>"}],"raw_content":"<!--section=description-->\n<p>Intended users: editors, authors, contributors<\/p>\n\n<p>This plugin will allow you to display the content of subpages as expandable links.<\/p>\n\n<p>Simply add [subpages_expand] to any parent page. The titles of each of the subpages will be displayed there as clickable links. When the user clicks the link, it will expand, displaying the content of that child page.<\/p>\n\n<p>Clicking the title again will collapse the content.<\/p>\n\n<h3>Acknowledgements<\/h3>\n\n<p>Plugin Icon (CC BY 3.0) by <a href=\"http:\/\/dinosoftlabs.com\/\">DinosoftLabs<\/a><\/p>\n\n<!--section=installation-->\n<p>If you have a single file (ending in \".zip\"), then use the <em>Upload<\/em> method. If you have multiple files, use the <em>Files<\/em> method. If you're installing from WordPress directly, just hit the big 'Install Plugin' button.<\/p>\n\n<h4>Upload<\/h4>\n\n<ol>\n<li>From the plugins, add new screen, choose upload<\/li>\n<li>Navigate to where the .zip file is located and select it<\/li>\n<li>Make sure to <em>activate<\/em> the plugin once it is installed<\/li>\n<\/ol>\n\n<h4>Files<\/h4>\n\n<ol>\n<li>Upload the entire directory (not just the files) to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<h4>Planned Enhancements<\/h4>\n\n<p>In no particular order<\/p>\n\n<ul>\n<li>Option to display arrows next to titles to show if they are expanded or not (option to pick arrow type)<\/li>\n<li>Option to display child page titles as links (will still expand when clicked)<\/li>\n<li>Option to lazy-load subpages when clicked<\/li>\n<li>Potentially move away from jQuery for performance<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id='q.%20does%20this%20work%20on%20posts%3F'><h3>Q. Does this work on posts?<\/h3><\/dt>\n<dd><p><strong>A.<\/strong> No, only on pages<\/p><\/dd>\n<dt id='q.%20i%20added%20the%20shortcode%20and%20nothing%20happened%21'><h3>Q. I added the shortcode and nothing happened!<\/h3><\/dt>\n<dd><p><strong>A1.<\/strong> Make sure you spelled it correctly<\/p>\n\n<p><strong>A2.<\/strong> Make sure you added the shortcode to a <strong>page<\/strong>, not a <strong>post<\/strong>.<\/p>\n\n<p><strong>A3.<\/strong> Make sure your page has sub-pages.<\/p>\n\n<p><strong>A4.<\/strong> Verify that your parent page and all child pages are published (not draft or pending)<\/p><\/dd>\n<dt id='q.%20my%20page%20has%20more%20than%20one%20subpage%2C%20but%20only%20one%20is%20showing%20up%21%20when%20i%20click%20the%20link%20the%20other%20subpages%20are%20in%20the%20text%20that%20appears.'><h3>Q. My page has more than one subpage, but only one is showing up! When I click the link the other subpages are in the text that appears.<\/h3><\/dt>\n<dd><p><strong>A.<\/strong> You have an HTML error in one of your pages. If you have mismatched <code>div<\/code> tags, the child pages after that can get \"trapped\" in the first child's content.<\/p><\/dd>\n<dt id='q.%20error%20324%20%28net%3A%3Aerr_empty_response%29'><h3>Q. Error 324 (net::ERR_EMPTY_RESPONSE)<\/h3><\/dt>\n<dd><p><strong>A.<\/strong> This error usually occurs when you try to have this shortcode on a child page.\nYou cannot nest this shortcode (i.e., have it on a parent page and one of the child pages).<\/p><\/dd>\n<dt id='q.%20it%20takes%20a%20long%20time%20for%20the%20page%20to%20display.'><h3>Q. It takes a long time for the page to display.<\/h3><\/dt>\n<dd><p><strong>A.<\/strong> The time it takes for the page to display is the time it takes for <strong>all<\/strong> of the subpages' content to\nload. If you have subpages with lots of content (or javascript that loads in content), it will take time for\nWordPress to load that page.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>1.20 Verified it works on WP 6.7.2; fixed embarrassing typo<\/p>\n\n<p>1.19 Verified it works on WP 5.4.2<\/p>\n\n<p>1.17 Verified it works on WP 4.8.0. Code cleanup.<\/p>\n\n<p>1.15 Verified it works on WP 4.6.1<\/p>\n\n<p>1.13 Added support for WP 4.5<\/p>\n\n<p>1.11 Button only appears on page editor now (shortcode doesn't work on posts, so there's no reason to show it there) - tested up to 4.3<\/p>\n\n<p>1.10 Added button to page editor * Added l10n support to button<\/p>\n\n<p>1.09a Not all child page links were displaying. Added additional FAQs that came up.<\/p>\n\n<p>1.09 Fixed \"Undefined variable: content\" bug; cleaned up code<\/p>\n\n<p>1.07 Fixed bug where shortcodes in the child pages weren't rendering<\/p>\n\n<p>1.05a Corrected spelling\/grammar errors in documentation (no functionality change)<\/p>\n\n<p>1.05 Fixed issue with missing subpages<\/p>\n\n<p>1.03 Expanded readme with information about an issue; added screenshots to zip<\/p>\n\n<p>1.01 Released with a debug fix, some formatting for the titles and code cleanup<\/p>\n\n<p>0.90 CSS change to title cursor<\/p>\n\n<p>0.70 Initial<\/p>","raw_excerpt":"Add [subpages_expand] to any parent page. All child pages&#039; titles are shown as links that expand to content when clicked","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/20581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=20581"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/salubrio"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=20581"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=20581"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=20581"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=20581"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=20581"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=20581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}