Skip to main content
2 votes
Accepted

No aspect ratio selector in a custom block

Per the developer handbook: This value signals that a block supports some of the CSS style properties related to dimensions. When it does, the block editor will show UI controls for the user to set ...
Chris Cox's user avatar
  • 1,643
2 votes

Add custom data attribute to every core Gutenberg Blocks

I found the solution: I removed addFilter('blocks.getSaveContent.extraProps', 'luxuryconcept/add-custom-props', addCustomProps); as @TomJNowell recomended. I added the add_filter('render_block', '...
Stefano's user avatar
  • 33
1 vote

FSE Change Post Template to Something Other Than a List

HTML is a semantic markup language, ie it describes the structure of the data. A post archive is a list of posts, so list markup is exactly what should be used. As far as styling goes, once you ...
Chris Cox's user avatar
  • 1,643
1 vote
Accepted

FSE Change Post Template to Something Other Than a List

The ul/li tags are hard-coded into the render_block_core_post_template() functíon: $content = ''; while ( $query->have_posts() ) { $query->the_post(); $block_content = ( ...
birgire's user avatar
  • 67.5k
1 vote
Accepted

Adding new Template Parts in the Block Editor when using Classic Themes

According to Carolina's excellent reference on full site editing, hybrid themes (that use both PHP and block template parts) can only allow users to add new template parts if you activate the ...
WebElaine's user avatar
  • 9,485
1 vote

Extending the Query Loop block

If you want to exclude output filters (which would be the normal way to do this) you are asking for a query that retrieves 9 posts and 3 ads (a separate post type or taxonomy?) in a specific order. ...
cjbj's user avatar
  • 14.8k

Only top scored, non community-wiki answers of a minimum length are eligible