Site logo

Archived topic

Event Calandar

3 replies · Started by Norman on March 21, 2022

Viewing posts 1–4 of 4

I want to create an event calendar website. I know there are plugins for this but I don't really like the look of them. I just need to list a few details for each event and don't require any type of booking so I thought I would try creating a blog instead. Can you order blog posts by the date of the event?

I also need a button and paragraph on the top of the page so it seems like I would need to create a page and list posts instead of making the blog the home page. Would WP Show Post be the best way to do this? I read that it is being added to Generateblocks but I don't see it in there.

Hi Norman,

Can you order blog posts by the date of the event?

I don't think there's such a function by WP or GP default.
But you might be able to achieve this by using plugins or writing custom functions.

If you use ACF plugin for the date, this article should be helpful:
https://www.advancedcustomfields.com/resources/orde-posts-by-custom-fields/

I also need a button and paragraph on the top of the page

You can set blog as homepage, then using a block element - hook to insert content to the blog page.
https://docs.generatepress.com/article/block-element-overview/
https://docs.generatepress.com/article/block-element-hook/

Here's a visual hook guide for you to find the right hook to insert content with:
https://docs.generatepress.com/article/hooks-visual-guide/#posts-page

Thank you, I think this will put me on the right path.

You are welcome :)

This archived topic is closed to new replies.