php - How to add an editable accordion in WordPress -


i trying add accordion page in wordpress.

the issue being, need accordion editable cms, , if possible, user add accordion on different posts.

i have looked it, , found advanced custom fields repeater might way go, yet find read on how implement this.

any great.

i use advanced custom fields repeater similar, , give users ability enter content can repeated. valuable because can wrap each part in html , whole thing can wrapped, let accordion.

here repeater code, mine events.

if (get_field('monthly_events')){     $events = get_field('monthly_events');       foreach($events $event) {         ?>         <li>             <strong><?php echo $event['event_name']; ?></strong>             <p><?php echo $event['event_description']; ?></p>         </li>         <?php     } } 

you should read instructions. have create , name fields using interface, apply new post type, , put accordion html new template post type. it's not rocket science there many steps read instructions. http://www.advancedcustomfields.com/add-ons/repeater-field/


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -