Support

Home Forums Event Espresso Premium Remove Event from List without deleting the event

Remove Event from List without deleting the event

Posted: May 31, 2018 at 7:52 am


kdaily

May 31, 2018 at 7:52 am

How can I remove an event from the event list without deleting the event?


Tony

  • Support Staff

May 31, 2018 at 8:40 am

Hi there,

So you just want to hide the event from the event lists but still allow users to view it if they have the URL?

If so you can use something like this:

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

You’ll need to change line 12 and set the Event ID’s that you don’t want to display on the front end there.

It currently hides events with ID 58, 11, 1911. You’d just change those ID’s to your own then add the function to a custom functions plugin on your site, we have some documentation on creating one here:

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


kdaily

May 31, 2018 at 8:42 am

No. I want the event in the back end, but I do not want it on the registration page or visible to anyone outside of an admin. Apparently changing visibility doesn’t do that.


Tony

  • Support Staff

May 31, 2018 at 9:09 am

Setting the event visibility to Private should remove the event from view for everyone but editors and administrators.

Is that not happening on your site?


kdaily

May 31, 2018 at 9:12 am

It is not.


Tony

  • Support Staff

May 31, 2018 at 9:12 am

Ok, can you link me to a private event, please?

(I will remove it from view once posted)


kdaily

May 31, 2018 at 9:14 am

** REMOVED **

  • This reply was modified 4 months, 2 weeks ago by  Tony. Reason: Remove link


Tony

  • Support Staff

May 31, 2018 at 9:22 am

I can’t view that event (I get 404) and its not displayed on your /register/ page so it appears to be hidden?

Is there another section of the site that continues to show that event?


kdaily

May 31, 2018 at 9:29 am

I swear that wasn’t working just a few min ago. Maybe it was a caching issue. Thanks for the quick help.


Tony

  • Support Staff

May 31, 2018 at 9:37 am

You’re most welcome.

Your register page is set to cache so that’s likely the cause, then when you log in as admin you’ll see the post anyway so it’s a little tricky to tell if it’s working.

The support post ‘Remove Event from List without deleting the event’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 4 months, 2 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!