AdvancedCustomFields / AdvancedCustomFields/acf

ACF block mode is not working as excpected

Open
#857 5 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

Hi, I want to do preview mode as default.

I added that. 'mode' => 'preview', but it is working only for new blocks. When I want to edit old posts blocks open in edit or preview mode.

For example, I created a new post and added a block. Then I switched it to edit mode and published the post. If I refresh the page block is in edit mode. Because I published posts when the block was in edit mode. How can I solve it? I want to always blocks be in preview mode.

Thank you!

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 report does not identify a file, test, or entry point; begin by reproducing the stated steps with an ACF block configured with mode => 'preview'. Done means blocks in previously published posts open in preview mode after refresh, even when they were saved in edit mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
content, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.