The method
Use this prompt in a chat-based LLM (like ChatGPT or Gemini) to generate the JSON configuration for creating ACF field groups. Provide specific details about the fields you need, including types, labels, and any validation rules. Paste the resulting JSON into your ACF configuration to quickly set up complex field structures.
The prompts
Prompt 1
I need to create an ACF field group for a 'Product' custom post type. The field group should include the following fields:
* 'Product Description': A WYSIWYG editor field with required validation.
* 'Product Image': An image field that only allows images from the media library.
* 'Product Price': A number field with a minimum value of 0.
* 'Is Featured': A true/false field with a default value of 'false'.
Generate the ACF field group configuration in JSON format.
* 'Product Description': A WYSIWYG editor field with required validation.
* 'Product Image': An image field that only allows images from the media library.
* 'Product Price': A number field with a minimum value of 0.
* 'Is Featured': A true/false field with a default value of 'false'.
Generate the ACF field group configuration in JSON format.
Prompt 2
Create an ACF field group for a 'Team Member' custom post type. The field group should contain the following:
* 'Member Name': A text field.
* 'Member Title': A text field.
* 'Member Bio': A textarea field.
* 'Member Photo': An image field.
* 'Social Media Links': A repeater field with subfields for 'Platform' (select field with options like Facebook, Twitter, LinkedIn) and 'URL' (URL field).
Generate the JSON configuration for this ACF field group.
* 'Member Name': A text field.
* 'Member Title': A text field.
* 'Member Bio': A textarea field.
* 'Member Photo': An image field.
* 'Social Media Links': A repeater field with subfields for 'Platform' (select field with options like Facebook, Twitter, LinkedIn) and 'URL' (URL field).
Generate the JSON configuration for this ACF field group.