Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter roosterink

    (@roosterink)

    Well the shortcodes enable the tab plugin I am using to work, just adding the div tags to the page.php does not enable the tabs. I have to use the php echo do_shortcode to make them work. My end goal is to have a page template my friend can select and then the tabs are automatically on the page, but I want him to be able to use custom fields to add the content for each tab, since I will not be adding it and he is not able to hand code them. Does that make since?

    Thread Starter roosterink

    (@roosterink)

    Here is the code

    <?php echo do_shortcode('[wptabs]
      [wptabtitle]News[/wptabtitle]
        [wptabcontent]<?php echo get_post_meta($post->ID, 'fieldtext', true); ?> [/wptabcontent]
      [wptabtitle]Stats[/wptabtitle]
        [wptabcontent] Contents of the Quotes tab [/wptabcontent]
      [wptabtitle]Pedigree[/wptabtitle]
        [wptabcontent] Contents of the Tables tab [/wptabcontent]
    
    [/wptabs]'); ?>
Viewing 2 replies - 1 through 2 (of 2 total)