Title: Shortcode execution within your shortcode not working
Last modified: August 31, 2016

---

# Shortcode execution within your shortcode not working

 *  Resolved [jrwnam](https://wordpress.org/support/users/jrwnam/)
 * (@jrwnam)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-execution-within-your-shortcode-not-working/)
 * Hi,
    good plugin! Thanks for that.
 * When trying to execute a another shortcode within you shortcode the nested shortcode
   is not executed.
 * Example:
 *     ```
       [wppcp_member_content]
       [redirect url="/dashboard/"]
       [/wppcp_member_content]
       ```
   
 * for the above” the shortode [redirect url=”/dashboard/”] is not executed, only
   send as text outpuit to the page.
 * I guess you are not calling do_shortcode in your code. I would be grateful if
   you could add that.
 * Thanks a lot. Regards, Jürgen
 * [https://wordpress.org/plugins/wp-private-content-plus/](https://wordpress.org/plugins/wp-private-content-plus/)

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

 *  Plugin Author [nimeshrmr](https://wordpress.org/support/users/nimeshrmr/)
 * (@nimeshrmr)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-execution-within-your-shortcode-not-working/#post-7086871)
 * Thanks for the info.
 * Please open **class-wppcp-private-content.php** and go to last return statemnt
   of **guest_content_block** and **member_content_block** functions.
 * Change
 * `return $content;`
 * to
 * `return do_shortcode($content);`
 * I will be releasing a new version with these fixes soon.
 * Thanks
 *  Thread Starter [jrwnam](https://wordpress.org/support/users/jrwnam/)
 * (@jrwnam)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-execution-within-your-shortcode-not-working/#post-7086877)
 * Hello,
    all good. Thanks a lot for the change.
 *  Plugin Author [nimeshrmr](https://wordpress.org/support/users/nimeshrmr/)
 * (@nimeshrmr)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-execution-within-your-shortcode-not-working/#post-7086919)
 * You are most welcome

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

The topic ‘Shortcode execution within your shortcode not working’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-private-content-plus_304046.svg)
 * [WP Private Content Plus](https://wordpress.org/plugins/wp-private-content-plus/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-private-content-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-private-content-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-private-content-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-private-content-plus/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [nimeshrmr](https://wordpress.org/support/users/nimeshrmr/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-execution-within-your-shortcode-not-working/#post-7086919)
 * Status: resolved