Hiding won't work for certain roles
-
Hello!
I’ve been trying to figure something out for a bit now, and have tried virtually every option I can think of to resolve the issue, but with no success. We use your plug-in on our site to hide content from non-ProTrader members, and to direct non-ProTraders to the place that they can become ProTraders. The second time that we use the tags, seems to work perfectly fine. But it’s the first set of tags that are giving me a problem. I’ll describe the scenario below:
The following code is what is giving me issues:
[hide for=“protrader,administrator,editor,author,contributor”]
<h3>The rest of this content is only visible to ProTrader members.</h3>
<h4>To learn how ProTrader can benefit YOU, click here to watch our short video.</h4>
<img class=”aligncenter size-medium wp-image-5886″ src=”https://blog.mtgprice.com/wp-content/uploads/2014/11/expensive-cards-300×225.jpg” alt=”expensive cards” width=”300″ height=”225″ /><center>ProTrader: <i>Magic</i> doesn’t have to be expensive.</center>[/hide]
That code is meant to hide the ProTrader ad from the specified roles, but instead it only hides it from the administrator, editor, and author roles. But the ad still shows up for ProTrader’s and Contributor’s. Which sometimes causes them to think that they aren’t able to see our ProTrader content, even though they actually are. Any ideas as to why it’s not working properly..?
This is the code we hide the actual ProTrader content in though, which actually DOES seem to work fine:
[hide for="all" exclude="protrader,administrator,editor,author,contributor"] insert content here [/hide]
- The topic ‘Hiding won't work for certain roles’ is closed to new replies.