Skip Navigation

[Resolved] Conditional Block: Cannot add second custom user role

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 1 voice.

Last updated by barbaraK-3 1 month ago.

Assisted by: Minesh.

Author
Posts
#2863571

I have a problem with the Toolset Conditional Block.

I want to display content based on different user roles.
In the Conditional Block, I first add this condition:

Current user role = Other role > Mitglieder

This works so far.

Then I click the plus button to add another condition for another role.
The new condition starts again with:

Current user role = ...

But at this point I want to choose another “Other role”.
The problem is that “Other role” is no longer shown in the dropdown/list, so I cannot select a second custom role.

In the Toolset training video, it looks like this should be possible. That is why I am not sure whether this is a bug, a limitation in the current version, or whether something has changed in the interface.

What I want to achieve is:

Show this block if the current user has the role “Mitglieder” or another custom role.

Could you please tell me how to add more than one custom role to the same Conditional Block?

Thank you.

#2863591

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please tell me with what training video you see that's possible.

Can you please share problem URL and admin access details. Other role will not give you dropdown with other role but maybe textbox.

Can you please tell me what exactly codition you want to build with other role and current role ad I will see if there is any other workaround.

#2863597

Hello Minesh,

thank you for your reply.

I have created temporary WordPress admin access. Here is the temporary admin link:

hidden link

For now, I have not provided FTP access because the issue seems to be related to the Conditional Block settings in the WordPress admin area. If FTP access is really necessary later, please let me know why it is needed.

Here is the training video where I saw that this should be possible:

https://toolset.com/course-lesson/using-toolset-conditional-block/

The problem is not that “Other role” does not show a dropdown or that I do not see a textbox.

The problem is that “Other role” is not shown at all when I add the second condition.

The first condition works:

Current user role = Other role > Mitglieder

But when I click the plus button to add another condition for another custom role, I can choose “Current user role” again, but the option “Other role” is no longer available.

So I cannot enter or select another custom role at this point.

What I want to build is:

Show this block if the current user role is “Mitglieder” OR if the current user role is another custom role.

Could you please tell me how I can add the second custom role if “Other role” is not available in the second condition?

Thank you.
Barbara

#2863602

Hello Minesh,

I forgot to include the page URL in my previous email.

Here is the page where you can see the problem:

hidden link

Thank you.

#2863644

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I can not login using the temp link you shared.

Can you please send me working admin access details.

I have set the next reply to private which means only you and I have access to it.

#2863654

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm not sure what its not working for you. For me it does work.

please check the following video:
- hidden link

I've added second role and if you want to change it you an edit the condition block and change it accordingly.

#2863660

Hello Minesh,

thank you for checking this and for the video.

You are right, it works.

The reason I did not find it was that I expected “Other role” to appear again in the dropdown list. I did not realize that I had to type the role directly into the field.

Now I understand how to add the second custom role.

Thank you for your help.

#2864280

Hello,

I would like to continue with this ticket because the issue is not fully solved yet.

The “Other role” option now works in the second entry. However, the regular WordPress roles are still not displayed in the role selection field.

For example, roles such as Administrator, Editor, Author, etc. do not appear anymore. They also do not show up when I type them into the search field.

So the current problem is: I can use “Other role”, but I can no longer select or search for the normal WordPress roles in this field.

Could you please check this again?

Best regards,
Barbara

#2864286

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As the original ticket is already addressed and this is a different issue may I kindly ask you to mark resolve this ticket and open a new ticket with all those details and also share admin access details.

#2864301

Hello,

I have found the reason for the problem.

I was not logged in as an administrator, but as an editor. That is why the WordPress roles were not displayed in the Toolset Conditional Block.

When I am logged in as an administrator, I can see the roles and continue working.

So the issue was not caused by Toolset, but by the permissions of the user account I was logged in with.

Thank you and sorry for the inconvenience.

Best regards,
Barbara