Title: Nested Shortcode Loop
Last modified: August 29, 2018

---

# Nested Shortcode Loop

 *  Resolved [lheazel](https://wordpress.org/support/users/lheazel/)
 * (@lheazel)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/nested-shortcode-loop/)
 * I’m developing a theme that contains custom widgets which output shortcode. I
   had a situation recently where I placed the shortcode for a content block within
   its own content. The result was an infinite loop that timed out any page evoking
   that block.
 * Is there a way to disable shortcode within shortcode? Within the plugin or otherwise?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * (@vanderwijk)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/nested-shortcode-loop/#post-10672848)
 * Sorry, but I don’t think it is possible to prevent that from happening.

Viewing 1 replies (of 1 total)

The topic ‘Nested Shortcode Loop’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-widget/assets/icon.svg?rev=2884166)
 * [Content Blocks (Custom Post Widget)](https://wordpress.org/plugins/custom-post-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-widget/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/nested-shortcode-loop/#post-10672848)
 * Status: resolved