Just figured out the solution: use 'level' => 3
as parameter.
register_post_type('custom-post', array(
// [...]
'template' => array(
array(
'core/heading',
array(
'level' => 3
'placeholder' => 'this is a H3'
)
)
)
));
Related Posts:
- Enable Gutenberg on custom post type
- Creating conditional blocks for WordPress Gutenberg
- Add class to Gutenberg Editor for Custom Post Types
- How to filter by custom post type on Gutenberg “Latest Posts’ block
- Gutenberg: Sidebar for specific post type
- Gutenberg how to make attribute to save to meta
- How to add button to post page WordPress 5.x
- WordPress Gutenberg-Block with ESNext (withState, withSelect)
- The editor has encountered an unexpected error. // TypeError: Cannot read property ‘prefix’ of null
- Display different gutenberg template from selected post attributes
- WordPress Rest API only returns content when posttype has editor capability
- Lock post meta block at the bottom of a custom post type
- How can I list all custom post types in a block
- Gutenberg Featured-Image-panel missing when user with custom role edits Custom Post Type
- Adding a Gutenberg-like custom field on a custom post type
- Classic editor showing in Gutenberg when creating a custom post type
- How To Enable Block Editor (Gutenberg) for Existing Post Type via functions.php
- How to make a custom taxonomy selectable in post publish area?
- show_in_rest false disable Gutenberg
- I can’t choose the custom taxonomy in my custom post type on Gutenberg
- Parent field missing from custom post type in the block editor
- How to get the parent of a non-hierarchical custom post type being edited in Gutenberg
- post_type_link not working in gutenberg
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- Getting meta in editor plugin, and event triggering issue
- Save the post parent in a custom post type in Gutenberg
- WordPress CPT save metadata in gutenberg
- Can I override a CPT template on a per post basis with Gutenberg block editor?
- Query Post Object in WP Admin
- How to display “Category and Post_tag” component in a CPT Gutenberg edit screen?
- Combine multiple getEntityRecords calls
- Custom post type editor uses old tinyMCE
- Use core block functionality in a custom block gutenberg
- gutenberg message
- How do I assign a block template (.html) to a custom post type?
- Custom post type set default template using block editor
- CPT: Enable Gutenberg, but disable editor field
- Select custom post type do display from page editor
- How add Filter by Tags and by categories to custom post type in Gutenberg block
- Is it possible to add the Gutenberg block editor to a custom taxonomy?
- How to debug failing updates for custom post type?
- Some posts not displaying by taxonomy term
- Can you programme the selected page template to display block patterns automatically?
- Possible to limit internal link search to post types with Gutenberg editor?
- Custom Gutenberg block problem – This block has encountered an error and cannot be previewed
- Get list of all registered post types slugs
- tag.php doesn’t work with tags on a custom post type post?
- If featured image doesn’t exist, show post content
- Getting a div content of a post in wordpress?
- Rename a current used post type
- Include custom post types in categories widget
- add_meta_box: Datepicker like the one for postdate?
- How do you use JavaScript to detect the homepage
- Custom field losing p tags on display
- How to customize admin posts based on the user who is logged in
- Custom post type – how can I make it a sub-url of another page?
- Custom post type ‘orderby’ => ‘meta_value’ not working
- Loading custom post thumbnail into stream
- the_content() not outputting anything (Advanced Custom Fields)
- Change custom post type slug from plugin options
- How to use has_archive but disable feed per post type?
- Custom Taxonomy back-end customizations
- WordPress CMS Inquiry
- Custom rewrite url category
- Edit the author of custom post type
- How to: wordpress job listing and candidates details
- Hide if Custom Post Type is empty
- Custom URLs in post types make it impossible to view archive
- Permalink problems with custom post type and custom taxonomy
- Custom Post Type Categories URL not displaying posts
- Custom post type subtaxonomy template
- tax_query (if the terms are empty)
- How I can made a custom post type to page templates?
- trying to show single post but displays all post on a custom post type
- List all posts in taxonomy term
- insert image with custom post type
- get post count for related author
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- How to Implement Search Functionality?
- Adding /blog in front of single posts (only)
- wp rest api orderby field in a custom table
- Post template with breadcrumb needs to show page navigated from
- Custom post types – meta_query: search lesson which starts sooner
- Custom Post type plugin is using theme single.php and style.css
- WordPress Custom Post Type – Post Attribute: Template. Template shows up and saves on the back end, but the default theme file is being rendered
- Permalink Problem with Custom Post Type
- Automatically convert standard posts with custom fields to custom post types
- Remove custom post type slug but keep related category taxonomy permalink
- Adding CPT changes entire layout of my site except for the archive of that CPT
- page not found for example.com/custom-post-name
- How to show Y number of custom posts after every X normal posts?
- Why is my custom post type shown in the wrong place?
- Display Custom Post if custom field is marked
- Custom post type category page not working
- Turn off comments for given CPT checkbox?
- List a custom post type’s posts ordered by nested custom taxonomy
- listing custom post type category page
- Inserting random posts
- Rewrite a filter as shortcode (or something like that) to use anywhere in CPT
- Remote database access on another wordpress site’s custom post type