x3p0-dev / x3p0-ideas

A new WordPress theme.
GNU General Public License v3.0
55 stars 4 forks source link

Add baseline post format support #17

Open justintadlock opened 3 months ago

justintadlock commented 3 months ago

Currently, there is not much support for post formats in block themes, as outlined in this ticket:

However, there are some foundational things we could explore to add some basic theme support:

justintadlock commented 3 months ago

To get post format support for the Query Loop block, I enabled rest_api for the post format taxonomy (didn't add it to the theme because this is Core/plugin territory):

add_filter('register_post_format_taxonomy_args', function($args) {
    $args['show_in_rest'] = true;
    return $args;
});

This works on the front end. But in the editor, the spinner just keeps spinning and never loads posts (maybe there's a need for a custom REST controller):

image

I could dive into this more and add custom controls to the Query Loop block, but I'll leave this for the time being. May revisit later.