Support » Plugin: WP UI - Tabs, Accordions, Sliders » [Plugin: WP UI – Tabs, Accordions, Sliders] WP UI shortcode with custom fields

  • I’m trying to get the WP UI tabs to work with custom fields but I can’t get the following code to work. Is it possible to use shortcodes with custom fields?

    <?php echo do_shortcode('[wptabs style="wpui-android"]'); ?>
    
    <?php
    $values = get_post_meta($post->ID, 'delivery_information', true);
    if ($values){
    echo do_shortcode('[wptabtitle]');
    echo 'Delivery Info';
    echo do_shortcode('[/wptabtitle]');
    echo do_shortcode('[wptabcontent]');
    echo $values;
    echo do_shortcode('[/wptabcontent]');
    }
    ?>
    <?php echo do_shortcode('[/wptabs]'); ?>

    http://wordpress.org/extend/plugins/wp-ui/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP UI – Tabs, Accordions, Sliders] WP UI shortcode with custom fields’ is closed to new replies.