Title: nested ifs
Last modified: August 31, 2016

---

# nested ifs

 *  [mike-wiering](https://wordpress.org/support/users/mike-wiering/)
 * (@mike-wiering)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/nested-ifs-1/)
 * Thanks for this plugin, it works great!
 * Unfortunately, it doesn’t work as expected if you have nested ifs. Now the nested[/
   if] closes the first [if] block and you end up with “[/if]” at the bottom of 
   the page.
 * [if …]
    [if …] [/if] [/if]
 * Perhaps an easy solution would be to add something like [if1 …][if2 …][/if2][/
   if1].
 * [https://wordpress.org/plugins/if-shortcode/](https://wordpress.org/plugins/if-shortcode/)

The topic ‘nested ifs’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/if-shortcode.svg)
 * [If Shortcode](https://wordpress.org/plugins/if-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/if-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/if-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/if-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/if-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mike-wiering](https://wordpress.org/support/users/mike-wiering/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/nested-ifs-1/)
 * Status: not resolved