WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Ultimate
Conditional Display of Tabs (1 post)

  1. ppwd
    Member
    Posted 1 year ago #

    I want to use shortcodes ultimate to display Types plugin content. I was previously using WP-UI Tabs accordions and Sliders, although this was working it is incompatable with another plugin.

    Here is the code I used successfully for WP UI:

    [wptabs mode="horizontal" background="false"]
    
    [wpv-if wedding_information="wpcf-wedding_information" evaluate="!empty($wedding_information)"][wptabtitle]Weddings[/wptabtitle][/wpv-if] [wptabcontent][wpv-if wedding_information="wpcf-wedding_information" evaluate="!empty($wedding_information)"][types field="wedding_information"][/types]
    [/wpv-if][/wptabcontent]
    
    [wpv-if videos="wpcf-videos" evaluate="!empty($videos)"][wptabtitle]Video[/wptabtitle][/wpv-if] [wptabcontent][wpv-if videos="wpcf-videos" evaluate="!empty($videos)"][types field="videos"][/types][/wptabcontent]
    
    [/wptabs]

    I thought that the following would work:

    [tabs style="1"] 
    
    [wpv-if wedding_information="wpcf-wedding_information" evaluate="!empty($wedding_information)"][tab title"Weddings"][/wp-if]
    [tab][types field="wedding_information"][/types][/tab]
    
    [wpv-if videos="wpcf-videos" evaluate="!empty($videos)"][tab title"Video"][/wp-if]
    [tab][types field="videos"][/types][/tab]
    
    [/tabs]

    However I get tabs with no content entitled Tab 0 and Tab 2 and content prefixed with [/wp-if]

    http://wordpress.org/extend/plugins/shortcodes-ultimate/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic