Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    You’ll want to call do_shortcode() once, on the completed string. Something like this should work:

    <?php
    
    $accordions = '[accordion]
    [accordion-item title="Title"]Content.[/accordion-item]
    [accordion-item title="Title"]Content.[/accordion-item]
    [/accordion]';
    
    echo do_shortcode($accordions);
    
    ?>
    Thread Starter pixelparadies

    (@pixelparadies)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Embed shortcode in PHP template’ is closed to new replies.