Support

Home Forums Event Espresso Premium Private Event Titles Display 'Private'

Private Event Titles Display 'Private'

Posted: December 19, 2014 at 1:23 am


skillstat

December 19, 2014 at 1:23 am

Hi,
We’re experimenting with publishing events ‘privately’ so that they don’t show up on the calendar add-on. However every title of these events is automatically preceded by the word ‘Private:’, which we don’t really want. Is there a way to change this?
Thanks,
Brent


Dean

December 19, 2014 at 3:54 am

Hi,

The word Private will only be shown to logged in members as logged out members cannot access the events at all.

To remove the word, add the following function to your themes functions.php or to a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/):

function remove_private_ee($x, $post) {
	$x = $post->post_title;
	return $x;
}
add_filter('private_title_format','remove_private_ee', 10, 2);


skillstat

December 19, 2014 at 11:03 am

Dean, is there a way that we can just not have these events show up on the calendar add-on, but still be ‘visible’? We’ve got some front end functionality that allows us to show these events in an accordion fold on various pages on our websites. the use case is, we want to be able to create pages dedicated to our corporate clients where they can register for events that don’t show up on the calendar. However having them register for a login really isn’t an option at this point.


Lorenzo Orlando Caum

  • Support Staff

December 19, 2014 at 12:02 pm

Hi, you could set the calendar to show a specific category of events:

https://eventespresso.com/wiki/events-calendar-add-on/#settings

Here is an example of a shortcode that could be used:

[ESPRESSO_CALENDAR event_category_id=”your_category_identifier”]


Lorenzo

The support post ‘Private Event Titles Display 'Private'’ 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