Description
JR Field Generator For ACF is a small helper plugin for developers who use
Advanced Custom Fields (ACF) a lot and are tired of creating big field groups
by hand.
Instead of clicking through the ACF UI for every field, you:
- Type the fields you want (one per line, for example
Title : text). - The plugin sends this list to the Gemini AI API.
- It returns a ready-to-import ACF JSON field group.
You can then import that JSON into ACF and adjust details as needed. The goal
is to turn hours of repetitive field creation into just a few minutes of
simple input and review.
Important: This plugin uses the Gemini API. Your list of field labels and
types is sent to Google’s servers as part of the AI request. Do not include
any sensitive data in the field list.
Features
- Simple admin screen under JR Field Generator.
- Paste up to 70 fields per generation.
- Uses Google Gemini to propose sensible ACF field definitions.
- Outputs valid ACF JSON that you can import via Custom Fields Tools.
- Creates a new ACF field group JSON export on each generation run.
- Basic sanity checks and server-side validation to avoid broken JSON.
- Supports generating ACF field group JSON for a wide range of ACF field types.
How to use
- In the WordPress admin, go to JR Field Generator.
-
In the large textarea, enter your fields, one per line, using this exact format:
Field Label : type
⚠️ Important: You must use the format
Label : type(with a colon and space) for the plugin to work correctly.Example:
Title : textDescription : textareaPrice : numberProduct Gallery : imageBooking Status : selectDate of Birth : date_picker
- You can enter up to 70 fields per generation. If you need more, split your list into smaller chunks and run the generator multiple times.
- Click the Generate ACF JSON button.
- Wait a few seconds while the plugin talks to Gemini and builds the JSON.
- When it is done, you will see the JSON in the Generated JSON box.
- Either:
- Copy the JSON, paste it into a file, and save it as
.json, or - Click the Download JSON button to download a file directly.
- Copy the JSON, paste it into a file, and save it as
- Go to Custom Fields Tools.
- Use the Import Field Groups tool to import the JSON file.
After import, you can edit the generated field group, change the location
rules, rearrange fields, or tweak any details inside ACF as usual.
Limitations
- Maximum of 70 fields per generation run.
- Input format is critical: You must use the exact format
Field Label : type(with colon and space)
for the plugin to correctly parse and generate your fields. - Generated output uses a default location rule (
post_typeequalspost).
You can adjust the group title, location rules, and field settings inside ACF after import. - The plugin depends on the Gemini API being available and your API key having
enough quota. - The AI tries to guess sensible ACF settings, but you are still responsible
for reviewing the result and making sure it matches your project needs.
External Services
This plugin connects to the Google Gemini API to generate ACF field configurations using AI.
The AI reads the field labels/types you provide and returns suggested ACF-compatible JSON that you can review before import.
Service: Google Gemini (Generative Language API)
Purpose: To generate field group JSON based on user input.
Data Sent:
* Field descriptions entered by the user
* API key (stored locally, used for authentication)
When:
* Only when user clicks “Generate Fields”
No data is stored on our servers.
Terms of Service:
https://ai.google.dev/terms
Privacy Policy:
https://policies.google.com/privacy
Screenshots
Installation
- Upload the plugin folder to the
/wp-content/plugins/directory, or install it via the WordPress plugin installer. - Activate the plugin through the Plugins menu in WordPress.
- Make sure the Advanced Custom Fields (ACF) plugin is installed and active.
- Go to JR Field Generator API Settings in your WordPress admin.
- Paste your Gemini API key and click Save API Key.
FAQ
-
Do I need ACF Pro?
-
You need the ACF plugin (free or Pro) to import and use the generated field
groups. This plugin does not include ACF itself.Generated JSON is designed for import into ACF field groups. Depending on your exact setup, you may still want to review and fine-tune field settings after import.
-
Where do I get a Gemini API key?
-
You can create an API key in your Google AI / Gemini account. Once you have a
key, paste it into JR Field Generator API Settings. -
Is my data sent to a third party?
-
Yes. The field labels and types you enter are sent to the Gemini API so it can
generate field definitions. Do not put passwords, personal data or any other
sensitive information into the field list. -
Can I change the field group title or location rules?
-
Yes. After you import the JSON into ACF, you can edit the generated field
group like any other ACF group and adjust all settings.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“JR Field Generator For ACF” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “JR Field Generator For ACF” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.



