From the page you linked:
The shortcode parser correctly deals
with nested shortcode macros, provided
their handler functions support it by
recursively calling do_shortcode():
You need to recursively call do_shortcode()
on any shortcode handler that could contain nested shortcodes. So for example:
function wpse18659_permalink( $atts, $content ){
return '<a href="' . get_permalink() . '" title="Permalink to ' . get_the_title() . '" alt="">' . do_shortcode( $content ) . '</a>';
}
add_shortcode( 'permalink', 'wpse18659_permalink' );
That should handle nested shortcodes just fine.
Related Posts:
- Why are you using add_action for shortcode?
- How to get URL param to shortcode?
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- How to display the site name in a WordPress page, or post
- Native “playlist” shortcode random playing… How?
- How to display the names of users from a specific group with a shortcode?
- shortcode for logo image
- Stop strip_shortcodes() stripping content inside shortcodes
- How do i link gallery thumbnails to different url’s using the wp native gallery?
- Gallery shortcode menu order fix no longer working on WordPress 4.0
- How to save a shortcode in a Gutenberg custom block?
- Is shortcode_unautop() broken?
- Some doubts about gallery shortcode in WordPress
- Can a shortcode function this way
- Dynamically create shortcodes using add_shortcode and a callback
- Custom Shortcodes Giving error on development site
- Shortcode does not work, changes html order
- Extending the Audio Shortcode
- How resource intensive is wp_register_script()?
- Using API to generate short link
- Enclosing Shortcode Within Another Enclosing Shortcode Breaks Output Functionality
- How do you pass parameters TO a shortcode?
- How to enable shortcodes in text retrieved from get_theme_mod
- Is it possible to ignore the first Line Break in a preformatted Div from a shortcode?
- Video shortcode – autoplay all videos
- passing parameters to do action from shortcode to wp_footer
- Shortcode not working on static front page
- Compatibility of MathJax extension and JetPack [closed]
- MathJax inside shortcode
- How to add class or id to shortcode HTML elements?
- Change WordPress Shortcode added in to post
- Changing the title tag from a shortcode
- WordPress wpautop/shortcode generating invalid markup
- Shortcodes attributes defaults
- While loop shortcode problem
- Remove ‘p’ tags around shortcodes and ‘img’
- Execute Closing Shortcode After the_content
- Forcing max-width for image captions
- WordPress Short code with additional parameter
- How to protect parts of my code from TinyMCE modification when switching from text to visual mode?
- Creating a short code with php inside
- Shortcode output appearing at the top of the page only [duplicate]
- Is it possible to modify the header with a content shortcode?
- PHP/WordPress — How do I check if Shortcode returns content?
- Add shortcode with open close function
- this simple shortcode doesn’t generate Collapse as supposed
- Shortcode outputting at top of content
- Will a shortcode placed inside a paragraph tag still be valid?
- Shortcode Strategy
- Enclosing Shortcode is acting like self-closing
- Shortcode into the same shortcode
- How do I define and register a shortcode function in a namespaced functions.php file?
- Change user meta value with shortcode
- Execute shortcodes in PHP
- Implementing a URL Shortener
- WordPress User ID as Shortcode
- Clean way of using ob_start() and ob_end_clean() in wordpress
- Theme Convert PHP code to shortcode
- find shortcode inside content of post
- WordPress Short code for List style
- Adding a cover image to video shortcode
- How can i strip shortcode from HTML title tag?
- Show content if user left comment / non-logged visitors?
- How to insert current user ID/entry ID into a shortcode?
- Need help with creating a simple shortcode
- Returning HTML to Shortcode Block
- WP REST API remove the WordPress shortcodes from the JSON wp/v2/posts content->rendered
- Using a WP shortcode in Homepage
- i want to show a modal when user lands on home page very first time
- Hide download option video shortcode
- Gutenberg running code only available in front end within shortcode
- Insert HTML in content property and render it using shortcodes
- Redirect per shortcode if user is logged in
- Logout user if click on a custom page link
- Shortcode Attribute not defined
- Second attribute of shortcode is not changing why?
- Is Post-Author-Id shortocde
- Load next post by ID on a single page
- Plugin Shortcode value in post
- Add catagory attribute to custom shortcode
- Woocommerce Filter Main Loop by Tag [closed]
- Shortcodes: override a shortcode / change shortcode on the fly
- Class variables in shortcodes
- Separating Custom Template logic
- Remove width and height attributes from [gallery] output
- Shortcode for sectors
- How to not show shortcode contents if cart is empty?
- woocommerce Product shortcode create [closed]
- Help with Shortcode Functionality
- Shortcode Site include in a other
- Why is my ajax live search not working when i use a shortcode to call it?
- How do write this type shortcode? [closed]
- WordPress functions.php shortcode is not working [closed]
- My first WordPress shortcode just returning []
- WordPress shortcode select option not working [closed]
- How can I hide the ACF shortcode when empty
- How to pass text input data to shortcode
- Using variable as shortcode parameter
- How to handle Ajax Calls, when using same shortcodes (with different parameters, e.g. ‘post-type’)?
- conditional shortcodes