Closed ipokkel closed 1 year ago
UPDATE I've recreated something similar.
On initial load, it shows the events but then if you refresh the page it is hidden correctly. To be honest I think it's caching from the Events Calendar.
This issue only occurs when switching views from List > Month > Day etc.
Looking into this, it seems that the Events Calendar uses AJAX to switch between views and the content doesn't get filtered by the WP Query.
Ref: tribe_repository_default_query_args
filter.
Need to filter the display of the post content for a restricted event on the "archive" page (/events) in list or calendar view.
The Single Event is properly respecting Advanced Settings (whether to show excerpts or hide).
To reproduce: