You cant call a shortcode inside a shortcode they do not automatically nest, you need to use do_shortcode($content)
like this (i am assuming the name of your shortcode):
function alert_shortcode( $atts, $content = null ) {
return '<div class="alert alert-' . $atts['type'] . '" role="alert"><p class="alert-title">' . $atts['title'] . '</p>' . do_shortcode($content) . '</div>';
}
Related Posts:
- Compatibility of MathJax extension and JetPack [closed]
- Enqueue Scripts / Styles when shortcode is present
- Pass boolean value in shortcode
- Wordspress add into my javascripts
- Using preg_replace to separate gallery from the_content?
- List of all inbuilt WordPress shortcodes
- Implement If-ElseIf-Else-EndIf with short codes
- using html as shortcode attribute
- shortcode outputs first before the page content [duplicate]
- Are php template shortcodes ok?
- Extract attribute values from every shortcode in post
- How to make shortcode to hide selection of text from post or page?
- how to get shortcodes to work inside the text of custom fields
- Shortcode attribute value with dash (hyphen)
- Shortcode content does not show in feed discription/excerpt
- How do I create shortcodes for my wordpress themes?
- Execute shortcode only in another shortcode
- Why does WP not like my container?
- Nested Shortcode Inside [caption] Doesn’t Process
- How can I get the [video] shortcode to allow query string parameters?
- Multiple loops on page only show taxonomy name of first loop
- Add attribute to existing Shortcode
- manipulate a plugins shortcode
- How to put an “include” inside a “do_shortcode”?
- Changing playlist shortcode thumbnail sizes?
- What is the $atts parameter in shortcode_atts()?
- How to link to a page that has a shortcode?
- Adding short codes from a page’s content on header and hiding the same from page’s content
- Should I cache default WordPress gallery shortcode output?
- Audio and video shortcodes not working properly
- How to load shortcode sooner
- Tinymce list of shortcodes button
- Add page title as a javacript variable to specific posts
- How to create a shortcode for custom page template
- Easy way to show excerpts of specific posts on a page
- Shortcode content not displaying on Home page
- shortcode causing the_content() to return blank?
- What is wrong with my rewrite rule for a page URL with query parameters and short codes?
- Shortcode: display list of created shortcode in popup
- Shortcode return $content vs do_shortcode($content)
- Registration Form Shortcode
- Include tags in the body of a post
- no content after shortcode
- Remove shortcodes that are different (but same pattern) in each post
- Place a URL parameter value inside a WordPress short code
- Scripts for shortcode: concatenate or load separately? [closed]
- Print shortcode in defined area
- WordPress shortcodes are not working
- Conditionally Loading JavaScript/CSS for Shortcodes
- How to use/enable Pagination?
- Wrap Shortcodes and wpautop
- Shortcode called twice
- Favorite websites with shortened hyperlinks
- Best way to find all shortcodes that come with WordPress
- Add JS in footer via shortcode?
- Shortcode syntax errors
- Passing variable in nested shortcodes
- Shortcode Always Displays Default Attribute Value
- How to add a same div on every page
- WordPress Shortcode / Only works in classic editor, gutenberg error / invalid json response
- Do shortcode in template file
- How do I fit a function inside an opening and closing do_shortcode
- Pass instance number to shortcode child
- Add shortcode within the_content()
- Pass a comma separated shortcode attribute to a function
- Enclosing Shortcode not working in a Template
- how to write short code in word press
- hard code shortcode only on specific category
- pass complex json as shortcode parameter
- wp_enqueue_scripts does not work on admin page
- shortcode containing other shortcodes not returning content
- How to include shortcodes and pdfs in WordPress search without plugin?
- How to embeded shortcode for another website
- Gutenberg Shortcode will turn html to html entity
- Need help in setting up a transient using API Key and if possible updating it in the ACF field
- the_content() not showing the content in good order (with a shortcode)
- Execute shortcode in backend
- Load gravity form via ajax using do_shortcode
- How to Enable embedding WordPress default gallery in comments?
- Print shortcode according to site language
- Remove a short code and update it’s content (AJAX)
- create a shortcode for embedding google map in a page
- How to process a single attribute in a SQL request twice times?
- Customise standard lists within my shortcode
- Timber – don’t display shortcode
- Use ACF array values in shortcode
- php in a shortcode
- Pull in excerpt with shortcode
- How do I use “while” and “end while” inside of the echo do_shortcode with ACF Repeater?
- WordPress core playlist function not showing artist and album info
- Which method to use when deleting posts from the front-end
- Add an access code form to call a unique page based on page without registration
- short code is not working in in custom wordpress theme it’s only working in default theme
- Display post_meta in Shortcode
- Gallery Shortcode: using size=”full” doesn’t call the actual thumbnail image size
- loop on page makes shortcode fail
- WordPress Shortcode loads at the top
- php code to shortcode [duplicate]
- Shortcode leads to white screen [closed]
- filter custom field with checkboxes and show it with one shortcode