The single-event Template of the Block Editor contains a Single Event widget which is not detailed further.
Opening an event on the front page this template shows the content of the event. But on top it gives the notice “There were no results found.” This is irritating and seems to be a problem.
The misleading notice is cause by ~/plugins/the-events-calendar/src/Tribe/Template_Factory.php at line 150:
Here the function have_posts() returns 0 even though the selected single event is shown.
Thanks for reaching out and for sharing your findings.
To help us investigate this further, could you please provide the following information?
WordPress version
Theme name and version
The Events Calendar version
Additionally, could you provide the steps needed to reproduce the issue? The more detailed the steps, the easier it will be for us to recreate the behavior and identify what’s causing it.
Step 1: If I don’t use any calendar template stored in the templates folder, TEC creates a new template that is shown by the Block Editor as: Einzelner Termin: (header, Single Event, footer) and stored in the database. The front page is shown correctly without the wrong notice. 🙂
Step 2: If I want to edit this template Einzelner Termin and store any changes, the wrong notice is still not shown, but header and footer got lost at the front page. 🙁
Step 3: In order to add a navigation line to the template, I stored a template single-event.html into the templates folder: (header, Navigation, Single Event, footer) This template is shown by the Block Editor as: single-event and overwrites the template stored in the database. The front page is shown correctly with header, navigaton, and footer, but also with the wrong notice. 🙁
It seems that the problem is independent of the theme.