AdvancedCustomFields / AdvancedCustomFields/acf

WP All Import

Open
#766 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Hello,

We're currently using Gutenberg blocks & ACF which works great, however, I need to import some content into these blocks and I'm stumbled across a bit of an issue.

I'm using WP All Import to import the .XML file and within the content I've created 2 ACF Blocks, like so:

<!-- wp:acf/title \{
"id":"block_6357c910facb3",
"name":"acf/title",
"data":\{
"page_title":"{title[1]}",
"_page_title":"field_63299e5627967",
"overline_title":"",
"_overline_title":"field_63299ec327969",
"page_title_color":"gradient",
"_page_title_color":"field_63299efa2796b",
"background_color":"white",
"_background_color":"field_63356786e30b4",
"override_spacing_top":"0",
"_override_spacing_top":"field_63456f35e1d6f"
\},
"align":"",
"mode":
"edit"
\} /-->

<!-- wp:acf/text \{
"id":"block_637f5dc0aa693",
"name":"acf/text",
"data":\{
"field_6329d5982c9a3":"{content[1]}",
"field_634fb2b975920":"standard",
"field_637df5fd86866":"navy",
"field_6329d5c2c7bb5":"100",
"field_63456e46ba04e":"white",
"field_634d1b970f43b":"0",
"field_63456f35e1d6f":"0",
"field_635a5d2a75b63":"0",
"field_63775e03eb024":"0",
"field_63775e07eb025":"0"
\},
"align":"",
"mode":"edit"
\} /-->

The first block works perfectly, however, the second does not import.

Do I need to do anything differently?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The payload provides no repository file or test entry point. Reproduce the supplied XML import in WordPress with Gutenberg and ACF, comparing the working title block with the text block; done when both blocks import their mapped values.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
content
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.