Change WordPress user roles and capabilities › Forums › How to or FAQ › user_role_editor shortcode problem
Tagged: Shortcodes
- This topic has 8 replies, 2 voices, and was last updated 10 years, 7 months ago by
kardon.
-
AuthorPosts
-
05/03/2015 at 16:48 #1404
kardon
ParticipantI have content on a page that I want to control what a user sees based on their roles. I make sure I can see all content first and then I add the shortcode on the page via the text editor. Everything disappears. No matter what role I use in the shortcode. I can’t get it to show me anything
Text editor code:
[user_role_editor roles=”caclient”]
my special content
[/user_role_editor]I confirmed that the role ID is caclient and the user was assigned that role.
I have every item checked on the Additional Modules tab at the network level.
What am I missing?
06/03/2015 at 00:08 #1405kardon
ParticipantUpdated information:
Administrators can see all content but those with lower roles can not.I deleted the plugin and re-installed it just to see if that mattered and it does not.
Everything works fine except the shortcodes. What can I try to isolate the problem?
06/03/2015 at 03:50 #1406Vladimir
KeymasterTry other user with ‘caclient’ role. Will it change something? If ‘Yes’, assign to the former user other role and then assign ‘caclient’ back.
I tested shortcode feature today (to be sure) and this is the record of my test.
10/03/2015 at 03:39 #1407kardon
ParticipantI have tested further and even removed all plugins but no success with the shortcode.
It is multisite – could that be an issue?
Here is a record of my tests and set up. Hopefully you may see something in there.
10/03/2015 at 03:49 #140810/03/2015 at 17:29 #1410Vladimir
KeymasterThank you for the screencast. Shortcode works at my test multisite WordPress installation. So it should not be an issue.
Could you please send your test post content as a .txt file attachment to support [at-sign] role-editor.com?
10/03/2015 at 19:52 #1411kardon
ParticipantJust sent it over to you. Thanks for your help.
11/03/2015 at 02:11 #1412Vladimir
KeymasterThanks for the additional information. I paid attention on that after read of your 1st message, but thought that text is shown by WordPress/bbPress that way. Please check the double quotes used at the shortcode. Instead of
[user_role_editor roles=”caclient”]ordinal HTML complied double quote symbol should be there:
[user_role_editor roles="caclient"]The same problem should be fixed here:
[user_role_editor roles=”affiliate"]11/03/2015 at 13:46 #1413kardon
ParticipantI knew it would be something tiny like that! You have made my day!
-
AuthorPosts
- You must be logged in to reply to this topic.