Title: Order of shortcode execution
Last modified: August 22, 2016

---

# Order of shortcode execution

 *  Resolved [johanronstrom](https://wordpress.org/support/users/johanronstrom/)
 * (@johanronstrom)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/order-of-shortcode-execution/)
 * Hi!
 * I’m having trouble with the order of execution with the Post Snippets plugin.
 * This is what I’m trying to do:
 * `[dropdownitem type="menuitem" link="[download_url]" ]Download![/dropdownitem]`
 * I’m under the impression that if the Post Snippet shortcode (“[download_url]”)
   was replaced with it’s string, the other shortcodes (from “Easy Bootstrap Shortcode”)
   would resolve correctly, but now the dropdownitem just doesn’t show up…
 * I realize that this is not exactly a problem in the plugin, but I was hoping 
   someone had general tips on the order the plugins execute the shortcodes..
 * Thanks!
    / johanr
 * [https://wordpress.org/plugins/post-snippets/](https://wordpress.org/plugins/post-snippets/)

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

 *  [Johan Steen](https://wordpress.org/support/users/artstorm/)
 * (@artstorm)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/order-of-shortcode-execution/#post-5804116)
 * Hi,
 * You’re actually passing the string [download_url] into the dropdownitem shortcode.
   WordPress is aware that [download_url] is a shortcode and shall be resolved to
   whatever it provides when it outputs the content. Other shortcodes are per default
   not aware that they get a shortcode, but treats it as any other string. So in
   this case dropdownitem does not know that [download_url] is actually a shortcode.
 * But shortcodes can be made aware of other shortcodes, but they need to add support
   for executing shortcodes within the shortcode.
 * So in the case of Post Snippets, any shortcode you create that contains a shortcode
   in the snippet, will execute that nested shortcode too. But in your case, you
   need the shortcode [dropdownitem] to execute a shortcode on its link attribute,
   so for that to work, the developer of [dropdownitem] needs to add support for
   passing in a shortcode there.
 * Hope this helps/explains.
 * Cheers,
    Johan
 *  Thread Starter [johanronstrom](https://wordpress.org/support/users/johanronstrom/)
 * (@johanronstrom)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/order-of-shortcode-execution/#post-5804145)
 * Alright, I think I understand!
 * I’ll have to contact the authors of Easy Bootstrap Shortcode, or consider using
   another bootstrap shortcode plugin.
 * Thanks!
    / johanr

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

The topic ‘Order of shortcode execution’ is closed to new replies.

 * ![](https://ps.w.org/post-snippets/assets/icon-128x128.gif?rev=2545587)
 * [Post Snippets - Custom WordPress Code Snippets Customizer](https://wordpress.org/plugins/post-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/post-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-snippets/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [johanronstrom](https://wordpress.org/support/users/johanronstrom/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/order-of-shortcode-execution/#post-5804145)
 * Status: resolved