Collections allow you to showcase related content within a post
Using ‘accordion’ will show each item in the collection as an expandable box, with the option to show/collapse each item. When an item is expanded, the post title anchors to the top of the browser screen.
To add the accordion feature to a collection, simply add accordion=”on” to the shortcode:
This will display on the front-end similar to the below example:
You can choose to show the accordion display on mobile only – for this use accordion=”mobile” in the shortcode.