Skip to main content

Creating events and sorting inside of Gutenberg Query Loop

The following can be used as inspiration in relation to the Query Loop block in Gutenberg. The Query Loop block is a powerful block that can be styled in so many ways and can easily be added to various posts or pages with filtering built in to show categories etc. A kind of brainstorming message.

Manually.
- Made a CPT called Events.
- Two categories: "Upcoming events" and "Past events".
- A meta field box inside each event page for the user to add event date.
- Used Gutenberg Query Loop block (because one can so easily style it) to add Upcoming events to an Events page. In another page I added the Query Loop block to show Past events.
- At the end: Worked on having the Query Loop block sort events in order of event date. This brought with it problems.

I gave up (for now atleast) as this did not work and made this issue: https://github.com/WordPress/gutenberg/issues/72749

So why am I adding this comment here?
Well what if I could use Fluent Booking and a lot of pixel magic dust. Use a Fluent Booking Gutenberg block and the sorting I needed and make it possible to add events/booking through a Query Loop kind of block. With prices etc.
Now that I write this it feels a bit far out there as it seems more like a Fluent Events plugin that can work with other Fluent products. As perhaps a kind of bridge between Fluent Booking, FluentCart, FluentCommunity etc. I do believe my comment can create some interesting inspiration.