Hello @webcart
You could use several roles like this:
[um_show_content roles=”a-customer,wpamelia-customer”]
Hello World.
[/um_show_content]
Regards.
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 2 years, 9 months ago by
webcart.
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.
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.
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.
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 2 years, 9 months ago by
webcart.
Hello @webcart
Unfortunately, this functionality does not exist in our plugin at this time.
Regards