Get a WordPress Gutenberg Block Attribute to use it in frontend
In a Gutenberg block generating a Carousel I set the uniqueId attribute from the clientId of the block and I save it to the markup of the save function as an Html id.
In a Gutenberg block generating a Carousel I set the uniqueId attribute from the clientId of the block and I save it to the markup of the save function as an Html id.
I am building a theme into which I have integrated data recovered by an external API.
Given a term ID, how can I fetch the term object by its ID using getEntityRecords?
I have a custom post type with a custom block to collect required data and store it in post meta data or standard fields like title or slug, so I don’t want to display the Title block. I can’t disable title support in the CPT, because too much else depends on it.
after uploading a photo my block is selected, so I can change properties. But when I select another block, then by clicking on that photo I can’t select my block. I can select only through list view. Does anybody know how I can fix it?
I am creating a “Trigger Button” or CTA button if you want to call it that way. The user can choose if it should be a download or a normal redirect. If it is a download, I want the block to add a download at the end of the anchor tag
I am trying to add the excerpt as a placeholder to a description field in the Gutenberg sidebar. The problem is that when there is no manual added excerpt the placeholder will be empty.
I am trying to retrieve the tag’s used by the current post in the editor.
I struggle with columns block in my plugin. I try to filter all blocks of the type “heading”:
I’m using React select so that I can create a block option that will give me the option of selecting post types and posts based on the selected post types. Basically, a query block that is in the works in Gutenberg plugin if I’m not mistaken.