Gutenberg default value not saved in json

When I set default values in my attributes for my Gutenberg blocks, the values can be consumed on the client, but it does not appear in the JSON data until I change the attribute with setAttributes. When we register a block type (think of it like a post type) which happens on each page load, … Read more

Gutenberg LinkControl suggestionsQuery not working

However, typing into the search input shows all post types (I want it to just show pages). That’s most likely because your code, as well as the example in the documentation, used the wrong property name — suggestionQuery — which should actually be suggestionsQuery (note the plural “suggestions”). So try using suggestionsQuery? <LinkControl suggestionsQuery={ { … Read more

Testing custom themes / plugins under Gutenberg

You don’t need the nightly build unless you’re looking for deeper core compatibility issues. For strict Gutenberg compatibility, the plugin itself should be sufficient as long as you keep it updated. You can do the nightlies on a fresh install if you wish, but it’s unnecessary overkill IMO. I would (and do) unit testing with … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)