{"id":19011249,"date":"2026-09-04T05:04:56","date_gmt":"2026-09-04T05:04:56","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/collapse-all-expand-all-button\/"},"modified":"2026-09-04T05:04:56","modified_gmt":"2026-09-04T05:04:56","slug":"collapse-all-expand-all-button","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/collapse-all-expand-all-button\/","title":{"rendered":"Collapse All\/Expand All button"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Is there a simple way to add a toggle button (on a page with several hundred accordions) that will expand all of them, and then collapse all of them alternately?<\/p>\n","protected":false},"template":"","class_list":["post-19011249","topic","type-topic","status-publish","hentry","topic-tag-button","topic-tag-expand-all"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19011249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19011249\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19011249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}