[Plugin: Events Manager] Keeps showing private events on the front page
-
Hello
I’m using this wonderful plugin for a new project I’m working on, and I have stumbled upon a little problem, maybe a bug or it’s just me thinking on this the wrong way.
Let me first try to explain what I’m trying to accomplish.
On the site we are building there we be 3 different types of users:
- public users WITHOUT login
- normal users with login (role: subscriber)
- and premium users (role: premium user)
On the site we will host 3 different types of events:
- events open for everyone
- events open only for subscribers and premium users
- events open only for premium users
(actually there are more types, but I just wanted to keep it simple)
To handle all the different roles and capabilities I’m also using a plugin named Role Scoper (https://www.ads-software.com/extend/plugins/role-scoper/)
At the moment i have 5 events on my front page where 1 of them only should be visible to premium users.
Here is my problem, when I visit the page without logging in, i should only see my 4 normal events, but I still can see my premium event.
But when trying to enter my premium event, I get 404 page, which means it’s working. At first I thought it was my other plugin (Role Scoper) that was the cause of my problems but when I tried to enter my events page on mysite.com/events/ it only showed up 4 events.
Here is the code that outputs my list on my front page.
if (class_exists('EM_Events')) { echo EM_Events::output(array( 'limit' => 10, 'format' => '<h4>#_EVENTLINK</h4>', )); }
So here is my question: Is this intended? I mean why output a event which returns a 404? or am I doing this the wrong way? missing any arguments?
Any feedback, help I can get is much appreciated.
- The topic ‘[Plugin: Events Manager] Keeps showing private events on the front page’ is closed to new replies.