-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add baseline post format support #17
Comments
This filters `single_template_hierarchy` to add single post format support in the form of `single-post-format-{$format}`. It also registers these templates in the UI via the `default_template_types` filter hook. See: #17
To get post format support for the Query Loop block, I enabled 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): 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. |
Adds support for `taxonomy-post-format-{$format}` instead of the longer name. See: #17
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:
post-format-
slug prefixes and cleanup the template names (e.g.,taxonomy-post-format-image.html
would be nicer thantaxonomy-post_format-post-format-image.html
).post_format
taxonomy.The text was updated successfully, but these errors were encountered: