• I’m updating my site to Twenty Twenty Three, and as this plugin doesn’t support any block editing, and doesn’t really work with block themes at all.

    The developers seem to have opted out of any block editor support (they don’t even fix small stuff like the categories/tags in block editor bug), but I still use the plugin.

    There are some workarounds, as shortcodes and formatting kind of work still (though anything in {}, like image size doesn’t apply).

    What doesn’t work very well is the query loop. While using the default query works on archive pages, it doesn’t work to replace a widget with the next events.

    Ideally you’d be able to sort by date, choose whether to show all events, past events or future events, etc just like you do with in a classic widget.

    Do anyone have an idea of how to add those filters to the Query loop?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Here’s some documentation on how to extend the Query Loop block for custom post types: https://wpfieldwork.com/modify-query-loop-block-to-filter-by-custom-field/

    Thread Starter audunmb

    (@audunmb)

    thanks @joneiseman

    I’ll look into it, but as I’m rather unfamiliar with PHP I have to understand some of how this plugin works as well.

    For implementing the modied query loop block to display events you don’t need to know that much about how the plugin works. The main thing is identify the post meta values used by the plugin. Here’s some of what I found for one of my events in the post meta table:

    _event_start_time 18:00:00
    _event_end_time 20:00:00
    _event_start 2023-10-19 22:00:00
    _event_end 2023-10-20 00:00:00
    _event_start_date 2023-10-19
    _event_end_date 2023-10-19
    _event_active_status 1
    _event_start_local 2023-10-19 18:00:00
    _event_end_local 2023-10-19 20:00:00

    Most of what is left are the standard post fields.

    For the modified query loop block you want to be able to display the meta field values and to be able to order by and/or filter by the meta field values.

    Thread Starter audunmb

    (@audunmb)

    That’s very helpful, thank you. I’ll have a go at it soon. If I manage to get it working, I’ll post it here.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Anyone who has any succes using this with the block editor Query loop’ is closed to new replies.