Find Entries with Missing Secure Custom Fields with AI
Get a read-only table of the entries with empty fields, worst first, each with an edit link.
Prerequisites
A site connected to WPVibe running Secure Custom Fields 6.9.10 or newer (free, tested on 6.9.10) on WordPress 7.1 or newer (tested on 7.1.5), with an administrator account and Abilities API left on under SCF, Settings. A post type with a field group that has Show in REST API on.
My WordPress site uses Secure Custom Fields (SCF). Find my [post type] entries that are missing details, without changing anything. If a reply from a read-only ability ends with a note starting --- TRUNCATED, run that ability again with max_length 100000. If it is still cut, stop and tell me. Never conclude that a group or field is missing from a cut reply. If a create or change is cut, do not run it again: read the result back. 1. Run discover_abilities with category acf-field-management and confirm acf/field-groups is there. If it is not, stop and check GET /wp/v2/plugins?_fields=plugin,name,status. If Advanced Custom Fields or ACF PRO is active, tell me this recipe is written for Secure Custom Fields and do not suggest installing SCF, because activating it deactivates them. If you cannot tell, do not suggest installing SCF until I confirm neither is active. Otherwise tell me to install or update the free Secure Custom Fields plugin (6.9.10 or newer, on WordPress 7.1 or newer) and check that Abilities API, Post Types & Taxonomies UI (for post types and taxonomies) and Options Pages UI (for options pages) are on under SCF, Settings. If it is there, run acf/field-groups and note which fields belong to this post type. Also run scf/list-field-groups. If it returns an error, stop and tell me which check could not run. Name any active group on this post type with show_in_rest off, and tell me its fields were not checked. Call rest_api for GET /wp/v2/types with fields set to all and read this post type's rest_base as POST_TYPE_REST_BASE. If its rest_namespace is not wp/v2, stop and tell me this recipe needs the default namespace. 2. List every entry with GET /wp/v2/POST_TYPE_REST_BASE?status=publish,future,draft,pending,private&per_page=10&context=edit&_fields=id,title,status,acf, and keep paging. A page with fewer than per_page entries, or the error rest_post_invalid_page_number, means the list is finished. If a response ends with a note starting --- TRUNCATED, it was cut short, so restart the list from page 1 with half the per_page. Count an entry only after you have seen it in full. If the entries come back with no acf values, stop and tell me to switch on Show in REST API in the field group's settings in SCF. 3. For each entry, list the fields that are empty: an empty string, null, or an empty list. A number that is 0 counts as filled. Read each field's type from its _source entry. A _source entry is an object with label, type and formatted_value. Do not count those, but a field whose own name ends in _source is still a field. If a group has both a field X and a field X_source, the response overwrites one with the other, so take X's type from acf/field-groups and list X_source as "could not check". A value of false on an image or file field means it is empty, so list it as missing. A value of false on a taxonomy field also means it is empty, so list it as missing. An icon picker whose type and value are both empty is missing. On any other field type, list false separately as "check" with the field name. For a group field, or a clone field whose value is an object, check each value inside it the same way, taking each inner field's type from sub_fields in the acf/field-groups result when it is there, because values inside have no _source entry. If you cannot find its type, list false as "check". 4. Show me a table: entry, status, missing fields, and an edit link (/wp-admin/post.php?post=ENTRY_ID&action=edit). Put the entries missing the most fields first. 5. Tell me how many entries are complete. Change nothing.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Find Entries with Missing Secure Custom Fields with AI” recipe from the WPVibe cookbook on my connected site.
A listing with no price, a team member with no photo, an event with no date. Custom fields go empty quietly, and nothing in wp-admin shows you which entries are incomplete, so you find out when a visitor sees a gap.
The AI reads every entry of the post type, published and unpublished, with its field values, and lists what is empty. A number that is 0 counts as filled, an empty photo or file counts as missing, and a switch or choice it cannot judge is marked for you to check. You get a table with the worst entries first and an edit link for each.
It changes nothing, so it is safe to run any time. Your field group needs Show in REST API on, or the entries come back with no field values and the AI will tell you so. Fields that are empty on purpose will show up too, so read the list before you act on it.
Outcome
A table of incomplete entries with their missing fields and edit links, and a count of complete ones. Nothing is changed.