Since you don’t explain what functionality you’re trying to achieve, I assume you want to do one of these thing.
If you’re going to put that block in the post content you can achieve that by using WordPress shortcode
If you’re going to use that block as part of the layout, you might want to use custom widgets instead.
And both of them can be coded as a standalone plugin or coded in the theme as well. Putting it as a separate plugin means that the user needs to deactivate the plugin if he/she wants to remove the functionality, and if you put it in the theme code, the functionality will just disabled when the theme is deactivated.\
I hope that helps.
Related Posts:
- Displaying recent post excerpts on static front page
- Multiple content areas with Gutenberg – Transparent areas mid content
- Using classes instead of global functions in functions.php
- What are the ADVANTAGES of ORIGINAL wordpress template structure?
- Change admin bar to default:off
- How to change admin bar color scheme in MP6 / WP 3.8 front end?
- Template for individual post designs
- When to use esc_url, esc_html, esc_attr, and friends?
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- Add colors to existing color palette without replacing it
- What is the best practice for customizing a plugin’s JavaScript/jQuery?
- Front End Post Submit Form
- Can you filter posts by meta key with the getEntitityRecords selector?
- Feature Survey – What would you want in a resume theme?
- Responsive class to all the images in the content
- Change loop order via form or link (jquery, not URL)
- create blocks programmtically on theme activation
- Set front page as static page [closed]
- How to programmatically bring back “excerpts” field in post editor in WP 3.1+
- How to hide and content from auto-generated excerpts?
- How to add custom template tag in wordpress theme?
- How should I store global information such as a phone number so that it is editable through the CMS?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Upgrading a custom theme through the Dashboard
- Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- Modify the Additional CSS section (adding a disclaimer)
- WordPress Gutenberg Theme: Structure, Hierarchy and Custom Templates
- Version control for both Vagrant config and themes being developed [closed]
- Why is the Links Manager visible?
- Custom button block doesn’t work
- Best way to start becoming a wordpress developer
- Where should I update_options in a theme?
- WP 3.1 upgrade breaks AutoFocus+ theme
- Can’t select my block by clicking on it
- create-guten-block in wordpress theme?
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- How to make theme elements customizable in wordpress?
- What VSCode extensions are there for working with block themes? [closed]
- How to make animated intro?
- How to check if a WordPress core block is active in sidebar
- Force Balance Tags not working
- How do you replace content generated by custom fields with custom blocks in Block Editor?
- How to display all subpages and short by year
- JavaScript stops working on selectively refreshed sections one inside the other
- StoreFront product pages: Turn the Short Description section into a kindred tab section [closed]
- Customizer: save setting/control content to post/page
- Customize how a WordPress theme looks like in the Theme Selector
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Widget Option is Missing
- Default Text not showing from customizer
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- How to have content scroll over background
- WordPress Template Part in iFrame
- Why tags are displayed bellow the content and not inside
- Is there a WordPress boolean for “theme_customizer_active()”?
- Post and page content not displaying in search results
- How to add InnerBlock multiple times in the same block
- How to clean up the theme for production?
- add shortcode support in customizer
- Single.php the_excerpt loads same as the_content not loading read more line
- pre_get_comments or the_content filter
- Woocommerce Product attribute not imported with wordpress Importer [closed]
- Update Specific Key Value in Complex `wp_options` object
- Can’t change theme name
- Remove/Hide a Widget on a Custom Template
- Stop WordPress from showing images on non post pages
- How to use multiple check-box values to work in a function and insert values in database
- Show popover with url and option to open in new window
- How to Modify WP_Includes/blocks/latest_posts.php
- How to render block editor in wp-admin custom pages programmatically
- Attribute form NumberControl doesn’t update when I update page before it lose its focus
- Posts Page shows Classic Editor interface not Gutenberg
- Highly stylized pages
- How can I include custom Gutenberg Blocks in a theme?
- how to edit woocommerce checkout page
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- WordPress menu walker – Get parent item text inside end_lvl function
- How to dowload and edit content of a website
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- Any way to permanently translate themes?
- Best strategy for providing theme options using customizer
- Customizer API way function is_customize_preview() works only in main page?
- Support Multiple featured images
- How Does One Create a Global Variable Repository
- What hook to use for loading a custom class extension during Theme initialization?
- Suppress the_content filter in a nested loop
- trying to figure out how to use more that one image upload in the same section in theme customizer
- How to convert that page to a wordpress template? [closed]
- Not Found when using activity stream as front page with BuddyPress
- How do I change the tagline input to textarea?
- WordPress theme Modifications not showing up on live server
- How customizable is a self-hosted WordPress blog compared to a Blogger blog?
- How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?
- Insert gutenberg blocks into template
- Is there any filter or action hook to remove layout classes from appearing in my templates?
- Return the_content() with custom div class for a subset of posts
- When trying to run build script with gutenberg (with SVG import) – Error: Plugin name should be specified
- Block to show posts from same category