Title: Multiple Shortcodes
Last modified: July 28, 2023

---

# Multiple Shortcodes

 *  Resolved [webcart](https://wordpress.org/support/users/webcart/)
 * (@webcart)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/multiple-shortcodes-13/)
 * Hi,
   I need Multiple Shortcodes in the same shortcode widget.**Both** shortcode
   should apply.Now it look like one of them is working.Exmple:
 * [um_show_content not=”wpamelia-customer”]
   [um_show_content roles=”a-customer”]
   Hello World.[/um_show_content]The Hello World should be printed to wpamelia-customer
   AND a-customer.

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

 *  Plugin Support [andrewshu](https://wordpress.org/support/users/andrewshu/)
 * (@andrewshu)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/multiple-shortcodes-13/#post-16934359)
 * Hello [@webcart](https://wordpress.org/support/users/webcart/)
 * You could use several roles like this:
 *     ```wp-block-code
       [um_show_content roles=”a-customer,wpamelia-customer”]
       Hello World.
       [/um_show_content]
       ```
   
 * Regards.
 *  Thread Starter [webcart](https://wordpress.org/support/users/webcart/)
 * (@webcart)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/multiple-shortcodes-13/#post-16934437)
 * Thanks [@andrewshu](https://wordpress.org/support/users/andrewshu/),
   But I need
   something else.I need two different statementes to work together:[um_show_content
   not=”wpamelia-customer”]
 * AND
 * 
   [um_show_content roles=”a-customer”]
    -  This reply was modified 2 years, 9 months ago by [webcart](https://wordpress.org/support/users/webcart/).
 *  Plugin Support [andrewshu](https://wordpress.org/support/users/andrewshu/)
 * (@andrewshu)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/multiple-shortcodes-13/#post-16937650)
 * Hello [@webcart](https://wordpress.org/support/users/webcart/)
 * There are to shortcodes: [um_show_content not=”roles”] – you need to exclude 
   roles and [um_show_content roles=”roles”] – you need to include roles. There 
   are no other ways.
 * Regards.
 *  Thread Starter [webcart](https://wordpress.org/support/users/webcart/)
 * (@webcart)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/multiple-shortcodes-13/#post-16937729)
 * Hi [@andrewshu](https://wordpress.org/support/users/andrewshu/),
   I know these
   two shortcodes and I can put them toegther in one widget.The problem is that 
   the result is not “wpamelia-customer” role OR “a-customer” role.I need not “wpamelia-
   customer” role AND “a-customer” role in the same time.
 *  Plugin Support [andrewshu](https://wordpress.org/support/users/andrewshu/)
 * (@andrewshu)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/multiple-shortcodes-13/#post-16937872)
 * Hi [@webcart](https://wordpress.org/support/users/webcart/)
 * You could use the ‘,’ separator. [um_show_content roles=”a-customer,wpamelia-
   customer”] or [um_show_content not=”a-customer,wpamelia-customer”]
 * Sorry, but I can’t understand your question.
 * Regards.
 *  Thread Starter [webcart](https://wordpress.org/support/users/webcart/)
 * (@webcart)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/multiple-shortcodes-13/#post-16937894)
 * Hi [@andrewshu](https://wordpress.org/support/users/andrewshu/),
   Sorry for not
   being clear.Here is what I need:To do something if the customer is NOT “subscriber”
   and is a “Customer”.I need both conditions to happens together.If I put the code
   bellow, it will show the content for Non subscriber OR a Customer.But I need 
   to show the content ONLY for a non subscriber which is ALSO a Customer.[um_show_content
   not=”subscriber”][um_show_content roles=”customer”]Hello World.[/um_show_content]
 * Hope is it more understood now.
    -  This reply was modified 2 years, 9 months ago by [webcart](https://wordpress.org/support/users/webcart/).
 *  Plugin Support [andrewshu](https://wordpress.org/support/users/andrewshu/)
 * (@andrewshu)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/multiple-shortcodes-13/#post-16951968)
 * Hello [@webcart](https://wordpress.org/support/users/webcart/)
 * Unfortunately, this functionality does not exist in our plugin at this time.
 * Regards
 *  Thread Starter [webcart](https://wordpress.org/support/users/webcart/)
 * (@webcart)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/multiple-shortcodes-13/#post-16954483)
 * OK. Thanks.

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

The topic ‘Multiple Shortcodes’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [webcart](https://wordpress.org/support/users/webcart/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/multiple-shortcodes-13/#post-16954483)
 * Status: resolved