AdvancedCustomFields / AdvancedCustomFields/acf

Featured Image selection impossible in classic (no Gutenberg) posts

Open
#628 0 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

WordPress Version: 5.9.2
ACF Pro Version: 5.12

I have a project with both Gutenberg and non-gutenberg posts and I was really wondering, after updating for the first time in a while, what was the issue but I've been able to isolate it to ACF Pro.

The popup to select an image does open, hitting select closes the popup, but nothing happens: the preview image does not update and its value is not inserted in the form whatsoever. I did all the tests to make sure because I thought maybe it was just an image rendering problem and that the value was in the hidden field of the form, but it's not.

As far as I understand, ACF 5.12 completely breaks featured images for post types without Gutenberg added to them. Sidenote: adding an ACF Image field works properly, opens the popup and allows to select an image. That's what I did as a compromise in the meantime.

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

Reproduce this with WordPress 5.9.2 and ACF Pro 5.12 using a classic, non-Gutenberg post type, then compare the featured-image picker with an ACF Image field. The issue is fixed when selecting an image updates the featured-image preview and inserts its value into the form.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.