We can create accordion in two ways. Let’s begin–
1. Accordion form shortcode
Go to page > Add New. On the editor, you will see a dropdown called “EAP Shortcodes”, click here. Then click on the first menu called “Accordion form shortcode”. In your post editor, you will see a shortcode like –
[eaccordion id="01"] [eitems title="Your Title here ..." text="Your Text here ..."] [eitems title="Your Title here ..." text="Your Text here ..."] [eitems title="Your Title here ..." text="Your Text here ..."][/eaccordion]
“eaccordion” is a wrapper shortcode for the accordion item. You have to use this shortcode before & after accordion items shortcodes. You must use different id if you are planning to use multiple accordions on the same page.
“eitems” is a shortcode for each accordion item. This shortcode has two attributes. The title attribute is for accordion title & text is for accordion text. You can add your text as you wish. You can use multiple items in your accordion. Just you have to increase “eitems” shortcode.
2. Accordion form Standard Post or Custom Post
If you want to insert accordion form post, add some post in Accordion items > Add New. Then use this shortcode:
[wap_items post_type="post" taxonomy="category_name"]
Now save your page, then visit the newly created page & see something awesome. 🙂