Adding shortcode for tabs to PHP file
-
HI.
I was just wondering about how best to use shortcakes within PHP.
I think I have it right but seems to be a problem of calling a custom attribute within the php?Any suggestions of how to have single quotes within the do_shortcode?
I have tried double quotes at the start or double quotes around the single quote in the #ATT call but both don’t produce anything.<?php echo do_shortcode( "[tabs slidertype='top tabs'] [tabcontainer] [tabtext] Event Details [/tabtext] [tabtext] Sponsors [/tabtext] [tabtext]Terms & Conditions [/tabtext] [/tabcontainer] [tabcontent] [tab] Content [/tab] [tab] <?php echo $EM_Event->output('#_ATT{Sponsors'}) ?> [/tab] [tab] <?php echo $EM_Event->output('#_ATT{Terms}') ?> [/tab] [/tabcontent] [ /tabs]"); ?>Thanks
Troy
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Adding shortcode for tabs to PHP file’ is closed to new replies.