Shortcode works but not redirect
-
I’ve tried to figure out what I’m doing wrong, but it “may” be that the plugin is still not working with user roles that are not WordPress default roles. The role “I” have has to use a string of text and numbers to identify wholesale users in WooCommerce.
The only way I could get your plugin to work is if I added the shortcode to the page and wrapped it around the content I want hidden.
Using the role with the text and numbers works. I can “settle” with that, but I would much prefer a more elegant method of redirecting those who are not allowed to view the content. Because we will do this to more than 1 page in the future, I’d like to see if I can get this working properly.
When checking “Who can see”, if I only select Wholesale Buyer from the list, I can’t access the page. If I select all “except” Wholesale Buyer, I still can’t get to the page. Only if I do not select any role can I get to the page.
So it would seem there is something in your plugin that reads differently with the redirect method as opposed to the shortcode method. I’m also guessing that you are still working on trying to get the “new” user roles working and that should be my answer.
Thanks for all your hard work!The page I need help with: [log in to see the link]
- The topic ‘Shortcode works but not redirect’ is closed to new replies.