AdvancedCustomFields / AdvancedCustomFields/acf

post title and post thumbnail not updating in the ACF Blocks

Open
#848 3 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

I have used the ACF function acf_register_block_type to register a new block. In the render template, I have included the post title and post thumbnail as the block title and background image, respectively. However, when the post title get_the_title() or thumbnail get_the_post_thumbnail() is updated dynamically, the block does not show the fresh data unless the post is reloaded.

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

Start with the acf_register_block_type registration and its render template, then reproduce the issue by updating the post title or thumbnail without reloading the post. Trace how get_the_title() and get_the_post_thumbnail() are rendered for the block; done means both values show fresh data dynamically.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
content, web-dev
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.