Control visibility of Event Category for logged in Users

Home Forums Calendar Products Events Calendar PRO Control visibility of Event Category for logged in Users

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1015595
    Benjamin Hope
    Participant

    Is 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)?

    #1015647
    Abigail Marshall
    Participant

    Hi –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.

    #1015838
    Brian
    Member

    Hi 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

    #1021192
    Support Droid
    Keymaster

    This 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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Control visibility of Event Category for logged in Users’ is closed to new replies.