You will need to work with $content
inside your shortcodes PHP code.
So you went already right.
There is info in the WP docs about nested Shortcodes
https://codex.wordpress.org/Shortcode_API#Nested_Shortcodes
i found this information useful too:
Related Posts:
- custom shortcode will not display the wrapped content
- Trigger popup in a php if/else statement
- Displaying recent posts on static page with template-part via shortcode
- Is There A Way To Make Theme Files Accept Shortcodes?
- Help Fallback (thumbnail)
- How to get my [shortcode] rendered on the home page, other pages are fine
- Not able to remove caption shortcode from the content
- How can I prevent a shortcode div from extending beyond its boundaries?
- PHP unit testing WordPress?
- List of all theme customizer control types?
- Shortcode to insert
- How to remove hardcoded characters from playlists?
- Shortcode putting html such as
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Using Echo in ShortCode – Stuck
- Adding Image Count to Multigallery
- Remove css styles from specific page
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- do not show web page section when using advanced custom fields pro
- PHP Customization: Taxonomies and Queries, why? [closed]
- Nested shortCode functions in the functions.php file
- get_page_by_title with an apostrophe in variable
- My Own layout in WooCommerce pages [closed]
- Differences when using the the_time and the_date functions
- How can I get content inside one shortcode to another shortcode?
- Use WP_Query in shortcode
- Theme Options Page – User Updates Logo
- How to remove the cufon script from Dzonia Lite theme [closed]
- How to exclude category ID from Looper in WordPress
- Add a specific part of current category page url to shortcode
- Calculating a large number of MYSQL queries as customshort codes, slow
- Can’t access variable outside for loop
- add custom link to wordpress media gallery modal
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- How can I dynamically update the class in my shortcode?
- Two queries for a WP_User_Query search work perfectly apart, but not together
- How to edit widget code to add unique class name to each div?
- How to Reference/Echo Variable from Another PHP Function
- Replace shortcode in substring
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- WordPress admin-ajax.php
- Syntax error when I try to insert my loop into an unordered list? [closed]
- What exactly do this function declared into functions.php file of a WP theme?
- Royalty-Free Sliders used in theme development
- displaying content that includes shortcodes within an echo
- Reason to add a name of the theme like (‘menu-1’ => __( ‘Primary’, ‘twentynineteen’ ),) in PHP?
- Display Data in Table from External Database in WP using Shortcodes
- zip unzip attachments in wordpress
- Capitalize Shortcode Value on Output
- Why is my str_replace not working on short code submitted by front-end?
- WordPress get_media_embedded
- Shortcode not staying inside div tag
- get_comments_number() returns 0
- Shortcode function doesnt work without caption
- Why the dynamic_sidebar() call is putted into an ul tag?
- Create special button on WP Tiny MCE Posts Editor for Shortcodes
- Toolbar Hidden in a Virtual Page
- Remove Custom Post Category In WordPress Slug Using .Htaccess
- PHP inside echo HTML
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- Display logged in user name and lastname on page
- Header is not displaying on certain pages of wordpress theme [closed]
- Replace background image with post thumbnail in shortcode
- Conditional formatting on data fetched from MYSQL
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Looping through dummy posts and showing them in the main index.php
- Display current user metadata on WordPress page
- Add Shortcode to ::before class
- Warning: count(): syntax problem of the count () function
- Reload page with a different shortcode when a user selects from a dropdown
- How Can I Display the Last Modified Date for User Profiles on WordPress?
- Customizer: How to Sanitize a Decimal Number Range
- Shortcode’s output to use as other shortcode’s parameter
- PHP code printed into CSS classes
- Get the image title and alt from custom query
- What syntax is this? “{{post.price}}”
- Add two or multiple functions in WordPress Post or Page
- Shortcode Works for Logged in Users but Not Working for Guest
- perform mathematical operation on shortcode
- Update same content in multiple posts at once?
- problem multisite with blog id
- Create dynamic content from one WP page to multiple other pages
- WordPress get_post_meta issue
- Shortcode Display From WordPress Dashboard Page Without Using post_id
- Do_shortcode on PHP file outside theme ALMOST works
- Listing current pages subp page in list items in the sidebar
- How to add button to top of theme customizer?
- Sidebar doesnt get updated?
- Custom Shortcode with Dynamic Button
- Add CSS class to PHP Statement
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- Load slideshow.css file only if Slideshow is checked / on
- Predefine Magazine Style Layouts
- Shortcode for Visual Composer Grid fails turning string to integer
- Twig+WordPress how to use array arguments inside a function?
- How to store the_post_thumbnail() value in a variable
- HTTP 500 Error after Creating Shortcode
- Woocommerce Convert existing order to the cart
- WordPress PHP8 Critical Error in class-wp-widget.php
- How to execute a shortcode within a custom field?