## ACF and Gutenberg block, how to use blocks without ?

I’m working with Gutenberg blocks via ACF. It’s great compromise between classic / ACF and the Gutenberg. Another great thing is <InnerBlocks />. However, in one block can be used only one <InnerBlocks /> tag, so it’s kind of problematic, if I want to have more control over the html structure in my block. So: I have block with two divs (two columns). In each one I want to use Gutenberg blocks. Is there any way to insert specified block directly in my code, like image or group, without inner block?

## Get specific Blocks from Post

I’m trying to load individual Post Blocks (by type) into separate divs, I’ve tried filtering tags but the outcome is there’s a bunch of abandoned divs and it’s overall messy and unpredictable.

I was wondering whether there is a way to retrieve e.g. only Paragraph Blocks from a Post?

## ACF Repeater for registering Gutenberg Blocks

I am working on a template where I want to make a function that I can use the repeater field from ACF to combine that with the acf_register_block_type();.

What I have is the following:

 <?php          $rows = get_field('register_block'); if($  rows ) {         foreach( $rows as$  row ) {           $register_block_name_function =$  row['register_block_name'];           $register_block_name =$  row['register_block_name'];             function $register_block_name_function() { acf_register_block_type(array( 'name' =>$  register_block_name,                     'title' => __('3 Columns'),                     'render_template' => '/acf/blocks/gutenberg/columns-3.php',                     'category' => 'blocks',                     'mode' => 'auto',                     'supports' => array(                         'align' => true,                         'mode' => true,                         'anchor' => true,                     ),                     'icon' => array(                       // Specifying a background color to appear with the icon e.g.: in the inserter.                       'background' => '#B53A73',                       // Specifying a color for the icon (optional: if not set, a readable color will be automatically defined)                       'foreground' => '#FFF',                       // Specifying a dashicon for the block                       'src' => 'align-left',                     ),                 ));                  }                  // Check if function exists and hook into setup             if (function_exists('acf_register_block_type')) {                 add_action('acf/init', $register_block_name_function); } } } ?>  Is there a way that I can use 1 ACF Repeater to create multiple Gutenberg bocks by just adding a name. ## How to get data from WordPress$wpdb into React Gutenberg Blocks Frontend?

I am using $wpdb to do a mysql query and get the data from a php file. $  results = \$  wpdb->get_results("SELECT * FROM table_name");  

Now, I have registered a Gutenberg block with the wordpress api..

the component is a .js file, which uses (WordPress React) under the hood:

import { registerBlockType } from "@wordpress/blocks"; import { __ } from "@wordpress/i18n"; import edit from "./pruefungenEdit";  registerBlockType("mytheme-blocks/pruefungen", {     title: __("Pruefungen Block", "mytheme-blocks"),     description: __("Display a Table of exams", "mytheme-blocks"),     category: "mytheme-category",     icon: {         background: "#f03",         foreground: "#fff",         src: "dashicons-database",     },     keywords: [__("pruefungenBlock", "mytheme-blocks")],     edit: edit,     save: () => {         return <p>Test</p>;     }, }); 

This is my React component that I use for above edit() function:

import { Component } from "@wordpress/element"; import { withSelect } from "@wordpress/data"; import { __ } from "@wordpress/i18n";  class PruefungenEdit extends Component {      render() {         //where to get the data from the query in .php file??         return <div>Data...</div>;     } }  export default PruefungenEdit; 

I can’t use php code obviously inside my .js react file.. I thought about setting up a small nodejs server that queries my localhost mysql table, and send that data via custom api route. THen I query that route on my react frontend and display the data… but that looks like too much workaround to me, I mean php is itself some kind of backend, does WordPress not offer that possibility to query mysql data and send it to the frontend somehow?

My question now is, how do I get the data from the php file into my gutenberg Block that I registered for the block editor frontend?

## How to make monsters stat blocks?

Is there a way that I can turn a character sheet into a monster stat block? I am trying to make some monsters, but there are sections for class and paragon path that are obviously meant for a PC. I have the D&D-4e sheet on.

## Gutenberg editor add default WP blocks inside a custom block

I created a simple custom block (adds a <p></p> wrapper), and while I am inside the block, I want to have ALL (common, formatting etc) blocks available as well. At the moment, I only see RichText options in the toolbar. Is it possible to add an option for ALL blocks instead of nesting them one-by-one?

## Tidy HTML formatting in Gutenberg HTML blocks

When forming my own HTML blocks, trying to keep my HTML tidy for easy debugging purposes is a pain because tab spacing cannot be used, and therefore multiples of 4 spaces or more has to be used for each indentation level. Having to count 1,2,3,4…1,2,3,4…1,2,3,4 for example to keep everything in line slows down page production too.

Is there a way of allowing tab spacing to be used within Gutenberg blocks?

## Win10 blocks access (first time)

No matter how I try to run it, I get this. Never happened before and no Win10 updates in the meantime.
Same goes for GSA CB. Xrumer and Capmonster running just fine. This is weird.

## Creating a block matrix from arrays of blocks

I am trying to generate a matrix from square blocks. Effectively, I have a $$n×n$$ matrix polynomial $$P(l)$$, the $$qth$$ derivative of $$P(l)$$ with respect to $$l$$, which is denoted by $$P^{(q)} (l)$$, and a block of zeroes, which I’ll just call $$0$$. I have some integer $$k$$ such that if $$k=1$$ then I am generating the matrix

$$R= \begin{pmatrix} P(l) \end{pmatrix}$$

If $$k=2$$ then I should generate

$$R = \begin{pmatrix} P(l) & 0 \ \frac{1}{1!} P^{(1)}(l) & P(l) \end{pmatrix}$$

If $$k=3$$ then

$$R = \begin{pmatrix} P(l) & 0 & 0 \ \frac{1}{1!} P^{(1)}(l) & P(l) & 0 \ \frac{1}{2!} P^{(2)}(l) & \frac{1}{1!} P^{(1)}(l) & P(l) \end{pmatrix}$$

and so forth. Generally,

$$R = \begin{pmatrix} P(l) & 0 & \cdots & 0 & 0 \ \frac{1}{1!} P^{(1)}(l) & P(l) & \cdots & 0 & 0 \ \frac{1}{2!} P^{(2)}(l) & \frac{1}{1!} P^{(1)}(l) & \cdots & 0 & 0 \ \vdots & \vdots & \ddots & \vdots & \vdots \ \frac{1}{(k-1)!} P^{(k-1)}(l) & \frac{1}{(k-2)!} P^{(k-2)}(l) & \cdots & \frac{1}{1!} P^{(1)}(l) & P(l) \end{pmatrix}$$

is an $$nk×nk$$ matrix.

I prefer a simple and understandable way and for that I thought to start with a zero matrix $$R$$ of dimensions $$nk×nk$$ and then with two "for" loops to full the initial zero matrix, putting the corresponding derivative which is needed. I’m not sure in what should go as my statement in "for" loops. I found other questions which were similar but more complicated and specific. Any help appreciated, thank you.

## What hook to use for modifying the markup of blocks?

WordPress had this Block "Gutenberg" Editor since version 5.0.

Are there existing actions or filters you can use to modify the rendered HTML markup right from the server-side?

If so, what hooks you can use to modifying the markup of those blocks?