{"id":870,"date":"2016-07-12T08:28:38","date_gmt":"2016-07-12T08:28:38","guid":{"rendered":"http:\/\/docs.contentviewspro.com\/?p=870"},"modified":"2023-12-27T10:56:37","modified_gmt":"2023-12-27T10:56:37","password":"","slug":"collapsible-list-open-all-items-on-page-load","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/collapsible-list-open-all-items-on-page-load\/","title":{"rendered":"Collapsible List \u2013 open all items on page load"},"content":{"rendered":"<p>With Content Views Pro 4.3 and higher, you can enable this feature per each View with the <strong>Open all items<\/strong> checkbox in <strong>Display Settings >> Layout<\/strong>.<\/p>\n<p>Otherwise, please add this code to file functions.php of your active theme:<\/p>\n<pre style=\"font-size:13px\">\n\/\/ Content Views - Collapsible list - open all items on page load\nadd_filter( 'pt_cv_collapsible_open_all', '__return_true' );\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>With Content Views Pro 4.3 and higher, you can enable this feature per each View with the Open all items checkbox in Display Settings >> Layout. Otherwise, please add this code to file functions.php of your active theme: \/\/ Content Views &#8211; Collapsible list &#8211; open all items on page load add_filter( &#8216;pt_cv_collapsible_open_all&#8217;, &#8216;__return_true&#8217; );<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[25],"doc_tag":[22,21],"class_list":["post-870","docs","type-docs","status-publish","hentry","doc_category-adjustment","doc_tag-collapsible-list","doc_tag-custom-code"],"year_month":"2026-09","word_count":59,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin1","author_nicename":"admin1","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/admin1\/"},"doc_category_info":[{"term_name":"Adjustment","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/adjustment\/"}],"doc_tag_info":[{"term_name":"collapsible list","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/collapsible-list\/"},{"term_name":"custom PHP code","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/custom-code\/"}],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=870"}],"version-history":[{"count":1,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/870\/revisions"}],"predecessor-version":[{"id":5434,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/870\/revisions\/5434"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=870"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}