Update ACF Field Values on an Entry with AI
Change a price, a time or any ACF field on one entry, with the old and new values shown before anything saves.
Prerequisites
A site connected to WPVibe running Advanced Custom Fields 6.8.12 or newer (tested on 6.8.12, the free version) on WordPress 6.9 or newer, with ACF's abilities on (they are by default; this recipe checks). A post type registered in ACF, with Show In REST API and Enable Abilities for Posts on, and its field group with Enable Abilities for Field Data and Show in REST API on.
My WordPress site uses ACF. On my [post type] entry [title or URL], change [field] to [new value] [and any other changes]. 1. Run GET /wp/v2/plugins?search=advanced-custom-fields with fields set to plugin,name,version,status. If ACF is not active, or its version is older than 6.8.12, stop and tell me to install or update it: older versions name these abilities differently. Then run discover_abilities with category acf-field-management. If acf/field-groups is not there, stop and tell me to switch on ACF, Settings, Features tab, AI & GEO, Abilities API; ACF's abilities also need WordPress 6.9 or newer. ACF names these abilities after the key, with underscores turned into hyphens: a post type with the key team_member gets acf/list-team-member-posts, acf/create-team-member-post, acf/view-team-member-post and acf/update-team-member-post; a taxonomy with the key amenity gets acf/list-amenity-terms and acf/create-amenity-term. Run discover_abilities with category wordpress-content-discovery for the exact names. Find the post type's REST_BASE with GET /wp/v2/types with fields set to all: the rest_base of the entry whose slug is the post type's key. Run get_ability_info on the post type's update ability for its fields, their types and choices, and acf/field-groups to check its field group. If acf/field-groups comes back cut, run it again with max_length 100000. If the post type has no abilities, or its create and update abilities list no acf input, or acf/field-groups lists no group for it or shows show_in_rest off for its group, stop and tell me what to switch on: for the field group (ACF, Field Groups), Enable Abilities for Field Data in its ACF AI tab and Show in REST API in its Group Settings tab; for the post type, switch on Advanced Configuration in its Basic Settings (ACF, Post Types), then Show In REST API in its REST API tab and Enable Abilities for Posts in its ACF AI tab. If Show in REST API is missing from Group Settings, ACF REST API is off: switch it on first in ACF, Settings, Features tab, API & Scripts. Without these, ACF drops the field values without an error. Then read one entry, GET /wp/v2/REST_BASE?status=publish,draft&per_page=1&context=edit&_fields=id,acf: if it comes back with no acf, stop and tell me ACF REST API or the group's Show in REST API is off (skip this check when there are no entries yet). If the post type is not in ACF, Post Types at all, it has no ACF abilities and this recipe does not apply. 2. Find the entry with the post type's list ability and search set to ENTRY_TITLE, or, if I gave a URL, with slug set to a list holding the last part of its path. It lists published entries only, so every time also search the other statuses with GET /wp/v2/REST_BASE?status=draft,pending,future,private&search=ENTRY_TITLE. If more than one entry matches across both, list them with title, status and ID and ask me which one. Read the entry with the view ability. 3. Show me the entry's title, ID and status, then each field you will change, with its current value and the new one. Check each new value fits its field, using the update ability's input for the field's type and choices: a number for a number field, one of the choices for a select, radio or checkbox field (ACF saves an off-list select value without a warning). Wait for my yes, and remind me that a published entry changes on the live site as soon as it saves. 4. Run the update ability with the entry's id and, inside acf, only the fields that change. Do not send fields that stay the same, and do not change the title, content or status unless I asked. 5. Read the entry back with the view ability and confirm every field, changed and unchanged, has the value it should.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Update ACF Field Values on an Entry with AI” recipe from the WPVibe cookbook on my connected site.
Prices go up, check-in times change, a speaker swaps sessions. Each change is one field on one entry, but it means finding the entry, scrolling to the field group, and hoping nothing else on the screen got bumped before you click Update.
Tell the AI what changed. It finds the entry, reads its current values with ACF’s own view ability, and shows you each field it will change with the old and new value. It checks the new value fits the field, saves only the fields that change, and reads the entry back to confirm the rest are untouched.
If the entry is published, the change is live as soon as it saves, so read the before and after before you say yes. ACF’s list ability finds published entries only; the recipe looks up drafts and other statuses through the REST API instead.
Outcome
The fields you approved are changed on the entry, and every other field is confirmed unchanged.