I think that you are missing the PHP registration of the block.
The JS definition is all right, but you need to tell PHP that the block exists.
Can you try to register your block in your plugin or function.php file?
Here is an example https://developer.wordpress.org/block-editor/tutorials/block-tutorial/creating-dynamic-blocks/
<?php
function simpletoc_toc_render_callback( $attributes, $content ) {
return 'This is my block content'.
}
function simpletoc_toc_register_block() {
register_block_type( 'simpletoc/toc', array(
'render_callback' => 'simpletoc_toc_render_callback'
) );
}
add_action( 'init', 'simpletoc_toc_register_block' );
Note that the code above is shortened to the essential.
EDIT Sorry, didn’t realized that all the magic for the backend rendering was coming from ACF Plugin.
You might want to have a look at this.
https://developer.wordpress.org/block-editor/packages/packages-server-side-render/ Though I have no idea on how to use it.
Related Posts:
- Gutenberg disallow certain custom blocks but keep all core blocks?
- Validation error: Extending Gutenberg gallery block
- Gutenberg: Error loading block: Invalid parameter(s): attributes but it can be used in the code
- How to disable Gutenberg editor?
- Getting a custom Gutenberg component’s state from outside that component
- How to create gutenberg block using REST API independently or as headless way?
- Show missing Sidebar from Gutenberg admin area
- Gutenberg: How to use block attributes with ServerSideRenderer?
- Gutenberg: Difference between “import” and “const” for dependencies
- Gurenberg Block: How to migrate from el-Functions to JSX elements?
- How to add custom style to Gutenberg?
- How to find out what blocks are added by a plugin
- Difference between register_block_type & wp.blocks.registerBlockType
- Passing select control value to block
- Passing RichText attributes to function onChange
- Can I share predefined fonts from theme_support with a gutenberg component?
- How do I store information in a dynamic block in WordPress?
- Gutenberg List Extension Block
- Changing image size to full size in Gutenberg’s block gallery
- Check for Active WordPress Plugins from the Block Editor
- Gutenberg Blocks – Change EDIT part of the block using editor.BlockEdit filters. How to change the markup?
- How to create custom embed block in gutenberg wordpress
- Getting RGBA colour from gutenberg colourpicker
- How to use get_theme_mod in gutenberg editor wordpress?
- How do I prevent the link from using url of the image in Block Editor?
- How to add Internationalization in WordPress using Javascript/React?
- how to disable blockrenderAppender inside all Innerblocks?
- Cannot find a list of data selectors for Gutenberg editor
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- Add button gutenberg help
- className not populating in custom block
- Gutenberg block can’t save richtext
- Use gutenberg block editor on plugin page (outside of a post)
- Using SVN to upload plugin created with gutenberg blocks
- Will Gutenberg Have a Negative Impact on Page Speed?
- Gutenberg: Block SelectControl saves attributes but after a reload of Gutenberg it loads its defaults. Why?
- Would Gutenberg be considered a PlugIn?
- How to add custom table style for table block in gutenberg editor
- Gutenberg Block Style CSS Class Is Not Applying on Backend
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- Gutenberg Blocks – Cannot retrieve block saved attributes in edit post
- How to find out whether a plugin is used in pages or posts?
- React error #231with Custom Blocks after upgrade to WP 5.5
- serverSideRender does not render “preview” html inside Gutenberg block
- How to have a gallery in which each image’s caption is a whole “post”?
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- WordPress Editor completely blank [closed]
- Elementor Combined all Sections into 1 Text Editor
- Use a custom block in another block
- Gutenberg default attributes are empty when accessing in edit
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- WP REST API GET Method Works But Not The POST Method
- How to make if statement in react plugin?
- WordPress Gutenberg custom block
- WordPress latest core update conflicting with newspack-newsletter plugin
- Javascript console errors and WSOD on edit post pages
- @wordpress/scripts advanced usage
- Has blocks gutenberg block multiples registers type in my Plugin
- Fixed: Console.log twice in the edit function
- Possible way of having multiple Gutenberg instances for a page?
- How to resolve warning for `unstableOnSplit` prop on a DOM element in block editor
- How to dynamically add template in Innerblock?
- How to create a custom block in Gutenberg with multiple checkboxes?
- WordPress Gutenberg How to make TextControl Required?
- Better search on WordPress.org Plugins?
- Gutenberg Block: How to reload a ServerSideRender?
- How to change the width of certain paragraph or header blocks?
- After Update Advanced Gutenberg Plugin – advgb/container site does not support block
- Implementing Scrollable Images
- Gutenberg editor in WordPress 5.0.3 /wp-json/wp/v2/pages/4713/autosaves?_locale=user 500 (Internal Server Error)
- Gutenberg: Dynamic Block – Show saved data in the editor
- Block registration with viewScript
- How to change post status to draft in Gutenberg?
- Custom gutenberg block image preview not working
- How can I utilize the same “show more” functionality that I see in superuser on my own WordPress site?
- Gutenberg Block to Select Category Term
- Refresh server side rendered block in Gutenberg without changing attributes or its content
- How do I set register_meta for a specific CPT?
- Block Missing from Inserter When Following Block Tutorial
- How do I save meta key value in the save function?
- Update Content for a Custom Block Toolbar Button
- How to save mediaupload multiple URLs as array meta?
- How can I display an attribute from each post inside foreach($latest_posts1 as $post )
- Wrong block appender button showing
- How to get custom setting from get_option and pass it in getEntityRecords in gutenberg block?
- WordPress custom block: Link saved in database not retrieved when editing post
- Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks
- Best approach to change mobile background image and adding its class
- Why is my Gutenberg block not saving and rendering the chessboard?
- How can we extent core/group or cover block?
- Force post update with React
- How to register a template in [NEW] WordPress site editor through a plugin
- How to display title, description etc in block images?
- Why is my drop down empty
- PHP Fatal error: Cannot redeclare distance() when making a new block
- WordPress Gutenberg Custom Block the viewScript does not get loaded on the frontend when my block is inserted
- How to change the version of block.js and plugin to the same of Package.json?
- I have to select text from gutenberg editor. Purpose is to store and replace text
- How do I apply different block supports to different parts of my custom block?
- Custom Gutenberg blocks not showing in WP editor