Don't use page templates, modify post_content #3

Open
opened 5 months ago by linos · 1 comments
linos commented 5 months ago
Owner

The Plugin currently uses custom page templates in /public to render and display the event archives and single views. In the future this may lead to more and more conflicts with themes, especially those with page builder capabilites.

A possible solution would be that the templates are not "touched" instead the post_content gets modified via the correspondind wordpress hooks.

However this should not be a replacement but an additional choice.

The Plugin currently uses custom page templates in /public to render and display the event archives and single views. In the future this may lead to more and more conflicts with themes, especially those with page builder capabilites. A possible solution would be that the templates are not "touched" instead the post_content gets modified via the correspondind wordpress hooks. However this should not be a replacement but an additional choice.
linos added the
enhancement
contribution welcome
labels 5 months ago
Poster
Owner

pre_get_post-Hook

Maybe we could also modify the publish date to the start-date (as displayed by the theme in the frontend). This could maybe integrate well in existing themes, because the start date is probably the most important meta-information.

[pre_get_post-Hook](https://developer.wordpress.org/reference/hooks/pre_get_posts/) Maybe we could also modify the publish date to the start-date (as displayed by the theme in the frontend). This could maybe integrate well in existing themes, because the start date is probably the most important meta-information.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.