Activating Block Editor causes single event view to show only title
-
I’m using The Events Calendar (TEC) 5.0.3.1 on WP 5.4.
I had activated the “Block Editor for Events” a while ago, and yesterday I was updating an event which had been cancelled because of the virus situation.
When viewing the event on the front-end, however, it contains only the event title. All of the information about date, venue, organiser and so on was missing.
By tracing through the code on a test site, I found that TEC was overwriting the “single-event.php” template with “silence.php”, which is an empty file … hence there being no event details to see on the front end. It does this with a filter that checks to see if the post contains blocks. If it does, then it uses that empty “silence” template.
If I uncheck the option to use the Block Editor, the event is correctly displayed.
I then went on to try creating a brand new event using the Block Editor, but again, the front end shows me only the event’s title.
I’m left with the opinion that the Block Editor simply isn’t working at the moment. I’ve certainly turned it off on my live site now.
Has anyone successfully used the Block Editor for events? What other settings are necessary to avoid the problems I’ve been having?
- The topic ‘Activating Block Editor causes single event view to show only title’ is closed to new replies.