You might be able to hack a conditional for 1 shortcode but it seems wonky. Typically you use 2 parameters just like you were using raw html.
There is a smart way around this using custom fields ( which I just happened to do recently).
It does not use any shortcodes at all, the logic is simple it has a custom fields called “tab 1, tab 2, tab 3 , etc” , if no data is entered no tab panels shows up, if there is data in the tab field the panels shows up and dynamically adds tabs per field that is filled out.
I just use jquery tools for the tab panel and default WordPress conditionals for the meta fields, get_post_custom_values
specifically.
Related Posts:
- do_shortcode() doesn’t do shortcodes ;)
- Allow Shortcode in Theme Customizer
- Can I create customizer setting that can handle plugin shortcode?
- enqueue script for specific shortcode
- Why does my short code get executed before other content?
- Run shortcode before filters
- What is wrong with this code I have to make a blockquote shortcode
- Custom shortcodes not working using __s theme
- Place the page title into the short code
- How to provide support for [gallery] shortcode?
- Responsive embed for the video shortcode
- How to display all subpages and short by year
- do_shortcode() in twentyeleven theme
- How to Manually Code Shortcode?
- Extract all shortcode data from post into loop variables?
- Shortcode IF statment help
- Extending custom shortcode to also be called directly from theme PHP pages
- Shortcode call not working in WP Template
- Shortcodes do not work in own template
- Pagination fuction in shortcode always displays on top
- How to use shortcode inside of shortcode in theme
- WordPress Shortcodes – Optional Styles
- Hide/disable sidebar using shortcode?
- wordpress script_loader_tag in function.php
- Theme does not allow shortcodes
- wordpress custom category post shortcode
- Avoiding do_shortcode() loops
- how to edit woocommerce checkout page
- TinyMCE strips content while pasting. Possibly a bug
- Passing a location-dependent array via wp_localize_script within a shortcode
- Problem using $var for shortcode attr value
- Onepage with shortcodes
- why my WordPress theme doesn’t support shortcode? [closed]
- Get the first image from post content (eg.: hotlinked images)
- Getting failure when using filemtime() with wp_enqueue_style
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- How bad is it if I write AJAX functions using wp-load.php?
- How to know if a child theme is being used?
- wp_nav_menu sort order?
- Twenty Eleven home page show only excerpt
- Snippet: Use classes instead of inline styles for text alignment
- Make a custom theme translate-ready
- Grab the first paragraph of each post
- Wrapper class: How to get rid of call_user_func_array() warning?
- Change Genesis Tag from Page Template [closed]
- How to Handle CSS for Multiple Header header.php Files?
- Resources for a complete beginner to learn to work professionally with WordPress [closed]
- Adding WordPress colorpicker in widget settings
- Removing title tags from each page
- How to attach different React Components to different Dom Roots using the new WP wordpress/scripts webpack/babel
- Remove Cookies From WordPress Core
- Is it necessary to prefix every css class in a theme framework?
- Warning/Error in Admin Panel while developing theme
- How do I get the next page of posts link?
- Where can I access my custom page template?
- How to display posts in hyperlink with nested slugs?
- Check if tag, category or author on archive.php
- Editing Footer Information
- How does a mobile WordPress theme differ from a simple theme?
- Developing WordPress Theme using CSS framework like Bootstrap
- Add “Delete” button to my Theme
- How to add a button which saves the post then executes a function
- Disable dashboard drag&drop
- nothing happen in search form
- Catagories to the list of the titles in that catagory to the content of the post [closed]
- How to customize output of plugin
- Override customizer values on a per-menu base
- Theme Inspector “X-Ray”
- WordPress Theme Creation [closed]
- Cherry framework – Overriding function in template-general.php
- pagination for a custom loop with multiple post types
- Making a child theme for “Airi”
- How to get category lists by name or slug
- Preview returns 404 in theme [closed]
- Same comments on all posts
- How to get DB options format without saving? [closed]
- How to add custom page elements to the WYSIWYG editor?
- Theme development: menu links a tabbed page with page jumps
- Disable redirect canonical
- Show only pages you are author of
- how to unlocalize theme/plugin?
- Adding a button to wp/aution plugin
- WordPress and Semantic UI
- Displaying front side empty with one file attached problem
- Can you edit a theme in a text editor?
- Where i must put hooks in overridable functions?
- my ajax wont sent the data, please correct my code
- How to fix a conflict cause by my theme with Woocommerce and/or Gravity Forms?
- How to hook into wordpress upgrade procedure for a custom theme
- Second page of archive is empty
- Change header image on a particular page
- Missing hashtag with theme customizer header color
- Fail to install theme on development copy of WordPress on Webmatrix
- Category page with posts from 2 different childcategories
- Recent posts with comment count in “Sidebar” template [closed]
- HTML to WORDPRESS [closed]
- Bootstrap 4 mobile menu not working for WordPress Development
- How do I send out an update for my custom wordpress theme?
- custom wordpress theme blog page always not showing the last two pages of the articles
- Cart button not working on mobile version [closed]