Title: Shortcode within Shortcode
Last modified: August 22, 2016

---

# Shortcode within Shortcode

 *  Resolved [JakeDH](https://wordpress.org/support/users/jakedh/)
 * (@jakedh)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode-1/)
 * Hi,
 * I was hoping to use this in conjunction with another plugin. This would mean 
   that logged in users would see a list of documents displayed to them, but only
   THEIR documents, so only documents assigned to their user group
 * Hence I would want to use Private Content to only show the logged in user’s documents,
   but this would need shortcodes from another plugin, called Media Category Library,
   to show said documents. so it would mean having the shortcode from the media 
   library plugin, used where the Text would go between the opening and closing 
   shortcodes for your plugin.
 * So the code would read like this:
 * **[private role=”administrator”]
    [mediacatform] [/private]
 * Would this be possible?
 * Many thanks,
    Jake
 * [https://wordpress.org/plugins/private-content/](https://wordpress.org/plugins/private-content/)

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

 *  Plugin Author [Aldo Latino](https://wordpress.org/support/users/aldolat/)
 * (@aldolat)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode-1/#post-5512131)
 * Hi,
    the plugin aready supports the nested shortcodes.
 * Does the shortcode `[mediacatform]` work properly outside the shortcode of my
   plugin?
 *  Thread Starter [JakeDH](https://wordpress.org/support/users/jakedh/)
 * (@jakedh)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode-1/#post-5512143)
 *  Thread Starter [JakeDH](https://wordpress.org/support/users/jakedh/)
 * (@jakedh)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode-1/#post-5512145)
 * Hi,
 * I’ve just tested it and it seems to be working fine with the nested shortcodes.
 * Thanks for the speedy reply, mark this as resolved **🙂**
 * Cheers,
    Jake
 *  Plugin Author [Aldo Latino](https://wordpress.org/support/users/aldolat/)
 * (@aldolat)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode-1/#post-5512214)
 * Great! 🙂
 *  [Stefano](https://wordpress.org/support/users/stefacchio/)
 * (@stefacchio)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode-1/#post-5512511)
 * Hello,
 * I added [contact-form-7 id=”808″] shortcode of famous plugin into private content
   shortcode but it doesn’t work correctly, instead to show plugin form it shows
   shortcode..
 * Thanks
    Bye
 *  Thread Starter [JakeDH](https://wordpress.org/support/users/jakedh/)
 * (@jakedh)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode-1/#post-5512512)
 * Hi Stefaccio,
 * Can you put here the exact piece of code that is not working please? (Private
   Content shortcodes AND Contact Form 7 shortcode)
 * I just tried out Contact Form 7 with Private Content, and it worked fine.
 * Cheers,
 * Jake
 *  [Stefano](https://wordpress.org/support/users/stefacchio/)
 * (@stefacchio)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode-1/#post-5512513)
 * Hello,
 * [private role=”subscriber” alt=”Devi essere loggato” container=”div”]
    [contact-
   form-7 id=”808″ title=”Iscrizione ai raduni – eventi”] [/private]
 * I also created another topic on this support forum because I have a basic problem
   with plugin, so maybe shortcode is an effect of principal problem.
 * Here link of topic:
 * [https://wordpress.org/support/topic/plugin-works-only-with-administrator-role?replies=1#post-6701953](https://wordpress.org/support/topic/plugin-works-only-with-administrator-role?replies=1#post-6701953)
 * Thanks
 *  Plugin Author [Aldo Latino](https://wordpress.org/support/users/aldolat/)
 * (@aldolat)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode-1/#post-5512514)
 * [@jakedh](https://wordpress.org/support/users/jakedh/)
    Thank you for your help
   and feedback! 🙂
 * The problem was an incompatibility between the plugin and the theme. You can 
   read more [in this post](https://wordpress.org/support/topic/plugin-works-only-with-administrator-role?replies=1#post-6703568).
 * Bye!

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/private-content_924d8c.svg)
 * [Private Content](https://wordpress.org/plugins/private-content/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/private-content/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/private-content/)
 * [Active Topics](https://wordpress.org/support/plugin/private-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/private-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/private-content/reviews/)

## Tags

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

 * 8 replies
 * 3 participants
 * Last reply from: [Aldo Latino](https://wordpress.org/support/users/aldolat/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode-1/#post-5512514)
 * Status: resolved