Title: Shortcode inside Shortcode
Last modified: August 19, 2016

---

# Shortcode inside Shortcode

 *  Resolved [cmsnext](https://wordpress.org/support/users/cmsnext/)
 * (@cmsnext)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/shortcode-inside-shortcode/)
 * I am trying to do something of this sort
 * have a shortcode like
 *     ```
       [outbox]
       [innerleft]thecontent[/innerleft]
       [innerright]thecontent[/innerright]
       [outbox]
       ```
   
 * so that the output is
 *     ```
       <div class="outbox">
       <div class="innerleft">thecontentcomes here</div>
       <div class="innerright">thecontentcomes here</div>
       </div>
       ```
   
 * When I use the short code only the outer shortcode gets applied, the inner ones
   dont apply and it displays as [innerleft]….
 * the output I get is
 *     ```
       <div class="outbox">
       [innerleft]thecontent[/innerleft]
       [innerright]thecontent[/innerright]
       </div>
       ```
   
 * any help with regards applying shortcode inside shortcode?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/shortcode-inside-shortcode/#post-2010937)
 * do_shortcode()
 * [http://codex.wordpress.org/Function_Reference/do_shortcode](http://codex.wordpress.org/Function_Reference/do_shortcode)
 *  Thread Starter [cmsnext](https://wordpress.org/support/users/cmsnext/)
 * (@cmsnext)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/shortcode-inside-shortcode/#post-2011069)
 * thanks a lot for the help.
 * the link you gave also links to this page
 * [http://codex.wordpress.org/Shortcode_API](http://codex.wordpress.org/Shortcode_API)
 * which contains exactly what I am looking at with examples.
 * thanks for the prompt help

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shortcode inside Shortcode’ is closed to new replies.

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [cmsnext](https://wordpress.org/support/users/cmsnext/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/shortcode-inside-shortcode/#post-2011069)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
