Shortcode and HTML in template
-
I would like to include the following shortcode/html sequence in a new page template. I have explored using do_shortcode, but can’t seem to format it properly so that it doesn’t return a server error. Any thoughts?
I have tried different variations of this and can’t get it to work.
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php echo do_shortcode('[tab name="7 Day Forecast"]'.<div id="widget-forecast"></div>.'[/tab]'); ?><?php echo do_shortcode('[tab name="Currents"]'.<div id="widget-currents"></div>.'[/tab]'); ?><?php echo do_shortcode('[/end_tabset]'); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Shortcode and HTML in template’ is closed to new replies.