24 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
112
views
How do I enable the function to insert blocks within blocks when registering ACF blocks?
I'm trying to create a wrapper block so that users can put multiple blocks inside the same wrapper instead of them each having their own wrapper.
My preference is to do this through PHP. I've been ...
1
vote
3
answers
805
views
WordPress - Access $context of parent block within block pattern
Issue
I have a setup using Gutenberg blocks via ACF. One of these blocks is a Group block which has the following context:
"providesContext": {
"acf/groupData": "data"...
1
vote
1
answer
134
views
packaging block.json renderTemplate in basic webpack setup using @wordpress scripts
On a Wordpress install, I am using ACF Blocks with "block.json", where my blocks are compiled from a /source directory to a /build directory, where they are registered via register_block_type. I’m ...
1
vote
1
answer
148
views
How to use show_in_rest = true in ACF?
I'm using Classic Editor with ACF.
When I was using CFS, I described
register_post_type(
"article",
array(
"label" => "記事",
"public" => true,
&...
-1
votes
1
answer
383
views
How can I display custom fields (created by ACF plugin) in WooCommerce Short Description?
I want to display custom fields in WooCommerce Short Description area, or after Short Description. The fields I created was using Advanced Custom Fields plugin, not default WooCommerce custom fields.
...
1
vote
0
answers
436
views
How do I add an ACF block to a custom PHP Wordpress template that preloads in the block editor?
I have a custom WP template single-page.php which can be populated with my custom ACF blocks. Initially I created Hero controls using ACF fields to ensure they were always present and could not be ...
0
votes
1
answer
130
views
WooCommerce, Gutenberg, ACF Blocks - problem with html characters in duplicated product
I've had a problem for some time and I can't find a solution.
Woocommerce, I have enabled Gutenberg support for products. I have ACF blocks that work and look correctly, but when I try to duplicate a ...
1
vote
0
answers
431
views
ACF Blocks - Different blocks loading the same stylesheet several times
I created several blocks using the ACF Pro 6 block.json. The styles of each block I defined using Tailwind. I found it handy to point the style setting of each block to my main style.css, as i am ...
3
votes
0
answers
560
views
How to force preview mode?
I have some custom blocks set up using Gutenberg and ACF. I am using the block.json method.
This is part of the block.json file that tells it whether to render as Preview, edit or auto.
"acf&...
0
votes
1
answer
2k
views
How to Access Parent Block ID and Index of Current InnerBlock in Gutenberg Custom Block?
I'm working with Advanced Custom Fields (ACF) to create custom blocks for the WordPress Gutenberg editor. I have designed a parent block named "Tabs" that can contain multiple inner blocks, ...
1
vote
0
answers
80
views
Enqueue CSS in the head instead of footer
I have a doubt - CSS enqueued using block.json is getting enqueued to the footer, often as inline styles, is there any way to control this behavior so that JS is enqueued in the footer and styles are ...
1
vote
1
answer
1k
views
Wp Block default background color don't work
I've found this really wierd bug where if I set the block.json to have a default background color, like this:
"attributes": {
"backgroundColor": {
"type&...
1
vote
0
answers
159
views
ACF field data not registering in block render
I have created a custom block in WordPress, using an ACF registered block. The purpose of the block is to allow the addition of either a regular post, or a custom post type post to a page. The block ...
2
votes
2
answers
2k
views
Gutenberg block CSS does not apply to preview in template parts editor
I'm trying to add support for template parts to my WordPress theme.
I have a block with a stylesheet and a script and everything works fine. However, in the template part editor (Design -> Template ...
0
votes
1
answer
2k
views
How to debug Gutenberg - the editor is showing a blank page after importing content
When I edit a post that's using Gutenberg I am seeing a blank page only when I import content, it works fine before I import and the content after import is showing fine on the front end I just can't ...