Support

Home Forums Event Espresso Premium EE4 Show Only Public Events

EE4 Show Only Public Events

Posted: March 25, 2017 at 7:02 pm

Viewing 4 reply threads


jmahan

March 25, 2017 at 7:02 pm

What is the filter that will exclude Private Events from the Event List and the Table View?

Want to be able to display a Private Event using the url, but don’t want it to show publicly any where else. THX


jmahan

March 25, 2017 at 8:38 pm

also only public on calendar

do not want to use password


Josh

  • Support Staff

March 27, 2017 at 3:55 pm

Hi there,

When you set an event’s Visibility to Private (which makes its Post status Privately Published), it automatically will not be included in the event list and on the table view if you’re not logged into the website. Also if you do not have the ee_read_private_events WordPress capability, and you’re logged in, you won’t see those events on the event list pages.

Privately published events automatically do not appear on the Calendar.


jmahan

March 27, 2017 at 4:44 pm

OK… I see Privately Published does not show except if logged in as Admin (so I must have ee-read-private-events ON). Where can I find out more about ee-read-private-events?

How can I allow someone to visit a Privately Published Event by giving them a link?. Using the Event Url gets a 404. THX


Josh

  • Support Staff

March 27, 2017 at 6:29 pm

re-read-private-events is one of many capabilities that Event Espresso adds to allow for granting access to specific types of content or admin controls. You can read more about Event Espresso’s capability system here:

https://eventespresso.com/wiki/event-espresso-4-roles-permissions/

How can I allow someone to visit a Privately Published Event by giving them a link?. Using the Event Url gets a 404.

The 404 is expected because by definition the unauthorized user isn’t supposed to see a privately published event.

In order to see a Privately published event (or post too) you’ll need to be logged into the site with a user account that has the ee-read-private-events. Event Espresso just hooks into WordPress’ built in Content Visibility feature for Private content like private events:

https://codex.wordpress.org/Content_Visibility#Private_Content

You can however build WordPress pages to show private event information where the event won’t show up on the calendar or in event lists, and you can use a plugin like WP Hide Post plugin to keep those pages semi-hidden:

https://wordpress.org/plugins/wp-hide-post/

Viewing 4 reply threads

The support post ‘EE4 Show Only Public Events’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso