• Resolved webcart

    (@webcart)


    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

    (@andrewshu)

    Hello @webcart

    You could use several roles like this:

    [um_show_content roles=”a-customer,wpamelia-customer”]
    Hello World.
    [/um_show_content]

    Regards.

    Thread Starter webcart

    (@webcart)

    Thanks @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 1 year, 7 months ago by webcart.
    Plugin Support andrewshu

    (@andrewshu)

    Hello @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

    (@webcart)

    Hi @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

    (@andrewshu)

    Hi @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

    (@webcart)

    Hi @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 1 year, 7 months ago by webcart.
    Plugin Support andrewshu

    (@andrewshu)

    Hello @webcart

    Unfortunately, this functionality does not exist in our plugin at this time.

    Regards

    Thread Starter webcart

    (@webcart)

    OK. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Multiple Shortcodes’ is closed to new replies.