Yes, you can include a shortcode however many times you like, inside a shortcode. Just make sure you set up the parent shortcode to parse shortcodes nested within.
So, for example, if your [shortcode]
does something like
function outer_shortcode($content = null) {
return '<div>' . $content . '</div>';
}
just be sure to update it to parse the content for other shortcodes:
function outer_shortcode($content = null) {
return '<div>' . do_shortcode($content) . '</div>';
}
You can then nest however many duplicate shortcodes as you like inside.
Related Posts:
- Autogenerate wordpress shortcodes using array?
- Shortcode display outside the div
- Trying to count the total number of paragraphs inside a blog article
- May i Use ShortCode in Template?
- Prevent shortcode from being wrapped in tags
- Adding Shortcode to Text Widget
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- creating html reusable blocks via shortcodes
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- Redirect to another page using contact form 7? [closed]
- What is @Action in WordPress?
- Return multiple values in a shortcode attribute
- Shortcode Attributes to Return different $_POST
- strange shortcode error: does shortcodes requires any dependency?
- Add the_post_thumbnail_url to a shortcode in function.php
- Adding a Tag Parameter / Filter to My Shortcode
- grab or load text on demand
- Elementor Pro display featured image on section -> style -> image using shortcode
- How to get current cart values using WC_Shortcodes?
- Get Shortcode output to database for static post_content
- Find all strings between an enclosing shortcode
- wordpress Shortocode running twice?
- Posting code inside the post instead of in the template file using shortcode
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- if plugin is active? check if plugin is enabled or not?
- How to override a theme function (within a class) using a plugin
- Seeking clarification on page request life-cycle
- How to assign user a role if none is present when logging in
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- Calling shortcode in wp_localize_script strips result
- WordPress shortcodes & performance
- Is it possible to make shortcodes NOT case sensitive?
- Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB?
- Looking for a solution – slightly convoluted problem
- WP theme with Backbone
- Can wp_localize_script be used within a shortcode?
- Custom CSS for plugin form
- AJAX button run function
- Shortcode based chart plugin
- Input with spaces in Shortcode attributes overwritten by defaults
- How to display custom sidebar in wordpress 5.5.2
- Single API call exposed via shortcode with params
- Replacing a plugin function with a custom renamed function doesn’t work
- SEO Friendly URL on dynamic product page produced via shortcode
- Insert content of a post into another
- Disqus deleted comments are syncing with wordpress but active comments do not
- WordPress get_avatar function not correct working
- WordPress metaboxes – textfield suggestion automatically populated
- Which file of wordpress manage plugins functionalities?
- How to Create a shortcode to this php function
- Improving the perfomance of a plugin action
- Check if variable is set in filter
- Image change on hover
- Passing stored variables to add_filter
- plugin shortcode not working on ajax request call
- How to activate a plugin on the activation of a theme?
- JQuery prepend a function
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Send email with list of active plugins upon activation/deactivation
- Where Should i write the code for wordpress ajax voting?
- How do I convert my WordPress website to be domain agnostic?
- Get Image Having the ID [closed]
- Show media-uploads to all users
- Echo out element to another page.
- how can authors to define custom pages?
- How do I create pages within a WordPress post?
- How to upload large media file in chunks, without any plugin?
- WP Function does not trigger on Webhook API Call
- Why do I need to reload the page for WordPress to see the new custom field added with jQuery
- Cookie value changes back to previous value after changing
- RSS Feed on WordPress showing code (hypertext) in articles titles
- Alternative Hook to the_content for Changing Background Color
- Unpublished Pages Failing To Appear On Custom Path
- How to add specific script to WordPress webpage that will working with user input and databases
- Hide Plugin Custom Post Type Menu Link
- How to create algorithm for ordering posts in WordPress?
- Make the product page as homepage WooCommerce
- Shortcode function not showing up on mobile browser
- Add external javascript to post template
- Get Current Post ID in WP Loop For GiveWP
- Shortcode generated widget to appear on same line as heading text and button
- Soflyy WP All Import Custom File Download Issue
- Update (a function) post’s featured image as soon as $image_url changes
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- Space in WordPress Attribute Causing Problems
- Shortcode registered from a plugin not recognized
- Strange get_the_* behavior with php 5.4
- functions.php conditional output for a single plugin
- Single dash converted to double dash
- How use Dynamic hyperlink on each wordpress post?
- How to declare this function correctly?
- How to show in front End images using Visual Composer attach_images?
- Can’t modify plugin function
- PHP if url extension action=discussion condition use [closed]
- Shortcode to do math with url variables
- How to get URL param for pagination in shortcode?
- Make plugin admin page visible to other roles
- wp_enqueue_script doesn’t load JS in plugin