|Tony||# Posted on May 15, 2018 at 4:41 am|
We don’t have a short code that allows you to set specific event ID’s to display/hide, you could use categories an have a ‘public’ category, then call the ESPRESSO_EVENT list shortcode to display the public events. For example:
would only display events in the ‘public’ category.
However your users would still be able to find the private events through the category archives using that method.
Another option is to use the pre_get_posts filter and set the posts ID’s to exclude using post_not_in, like this:
Which excludes events with ID 58, ,11, 1911 from any front end lists, you just set the ID’s you want to remove and add that function to a custom functions plugin:
You can then use the