Archived topic
GeneratePress and The Events Calendar Mainloop-Function
3 replies · Started by Marcus on October 3, 2022
Hi!
I use GeneratePress as a theme for a regional magazine, and also offer an events calendar with the plugin "The Events Calendar".
This offers a so-called main loop function to integrate and publish events in the blog loop.
Unfortunately this doesn't work for me!
Any idea how to get the function working?
Hi Marcus,
I'm not sure I understand your question.
Is the event a CPT? And what does it mean to integrate and publish events in the blog loop?
Can you explain a bit more about the situation here?
Let me know :)
Hello Ying!
Main loop means that an event can be published as a post and included in the regular loop for posting the articles.
In my example, in the articles above 'Other current articles'.
Here's an article from the authors of the calendar that explains it a bit more: https://theeventscalendar.com/extensions/advanced-options-for-adding-events-to-the-main-blog-loop/
Hi Marcus,
I believe this function by TEC just adds the events to the Main Query through pre_get_posts. GeneratePress shouldn't hinder this from occurring.
Do you have any custom PHP code in your site? Or other plugins? It may be good the try deactivating plugins and codes temporarily to test for any conflict.
It would be best as well to reach out the The Events Calendar support team for assistance regarding this.