Copy content stored in meta to post content
I’m working on a site that had an existing theme that used meta fields to store blocks (bad practice IMO but pre-block editor).
The Gutenberg Handbook mentions that some CSS for WordPress core blocks are applied to the front-end and within the editor by default (and that they cannot be disabled) but there are more opinionated CSS styles available that can be optionally added by adding the following your theme (in one of the PHP files, typically done through functions.php).
The issue I am looking for a way to add linking functionality to a custom block of mine and found different approaches to this need. There are: The URLInputButton Component The URLInput Component The LinkControl Component The URLPopover Component I got it somehow working with the first two components: const {URLInputButton, URLInput, URLPopover} = wp.blockEditor; … Read more
For a WordPress theme I deregister a few blocks for Gutenberg (in fact, I only register the ones I need).
I’ve spent about 3 hours trying out various functions to figure out why the newline characters are being removed every time I save.
I’m currently trying to learn how to create a custom wordpress themes and while the documentation is pretty great there seems to be a lot ways to implement things on your website.
I’m working on a site that had an existing theme that used meta fields to store blocks (bad practice IMO but pre-block editor).
I would like to have a multi select field for my categories. How can i do that?
Trying to get latest 10 posts to display in a Gutenberg plugin, but I can’t figure out how to access the latest posts from the block.js. I know how to do it from PHP and it’s easy, but this is new to me. Do I have to make a request to the REST API or is there a better practice?
I’m not very familiar with React and Redux. I have a problem with Gutenberg to get the value of the withState variable within the save function. Here’s my code:
I’ve registered a block pattern in my custom theme (using register_block_pattern) and it’s not displaying in the block patterns list so I’m trying to debug whether I registered it properly.