Support

Home Forums Event Espresso Premium List a specific event on a seperate page Reply To: List a specific event on a seperate page

Reply To: List a specific event on a seperate page

Author Replies
Tony # Posted on May 15, 2018 at 4:41 am

Hi Stu,

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:

[ESPRESSO_EVENTS category_slug=public]

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:

https://gist.github.com/Pebblo/24791195c24b868c88ad0ee217906b96

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:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

You can then use the [ESPRESSO_TICKET_SELECTOR event_id=58] to display the ticket selector for one of those events on a page of your choosing, or if you link directly to the event it will be accessible that way.

Do NOT follow this link or you will be banned from the site!