Home › Forums › Calendar Products › Events Calendar PRO › Control visibility of Event Category for logged in Users
- This topic has 3 replies, 4 voices, and was last updated 10 years, 5 months ago by
Support Droid.
-
AuthorPosts
-
October 17, 2015 at 2:01 pm #1015595
Benjamin Hope
ParticipantIs there a way to make certain event categories only display in the filter bar for logged in users?
Or similarly, only display certain events to logged in users with a particular role (with out letting them see ALL private pages)?
October 18, 2015 at 4:55 am #1015647Abigail Marshall
ParticipantHi –I’m just another user here, but I thought I’d share my experience:
I have a web site doing something like what you are suggesting with a plugin called Groups — see https://wordpress.org/plugins/groups/ – the basic plugin is free so you could test it out to see how well it works for you. I haven’t run into any problem or conflict with The Events Calendar. Basically Groups lets you define access restrictions for any post, including custom posts like events.
The only issue is that I haven’t been able to figure out how to modify the “not found” message that shows when an unauthorized user logs in. If someone who isn’t logged in goes to the events page, the events list shows the message, “There were no results found.” I want to modify that to read, “You must be logged in to view events” and haven’t figure out yet how to do that.
October 19, 2015 at 8:25 am #1015838Brian
MemberHi benmhope,
Thanks for using our plugins. I can answer your questions. We do not have built in features to do as you describe.
However, Abigail’s solution might work for you (thanks for sharing 🙂 )
You can make events private and then roles that see private events would be able to view them and other roles or if someone is not logged in they would not be able to see the event.
If you need something more specific it would have to be done with a customization.
I can try to answering some specific questions to get you started on a customization such as this, but it is beyond the support I can provide to do much more than that.
I can tell you that the main event views (month, list, map, etc) are archives and we have these conditionals to target them:
https://gist.github.com/jo-snips/2415009
And we have our themer’s guide for editing any of the events templates:
https://theeventscalendar.com/knowledgebase/themers-guide/
Let me know if you have any follow up questions.
Thanks
November 3, 2015 at 6:05 am #1021192Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Control visibility of Event Category for logged in Users’ is closed to new replies.
