
Advanced Custom Fields (ACF) adds structured inputs to the WordPress editing screen. For a stainless steel flange coupling, an editor can enter the model number, material, and minimum order quantity in dedicated fields. The product template can then display those values in a consistent format across the catalog.
You’ll need a WordPress test site and an account with permission to install plugins. If you’re new to themes, plugins, and the editor, start with our introduction to WordPress. The product specifications in this series are sample data.
How Advanced Custom Fields works
- A field label is what an editor sees, such as Model number.
- A field name is what your code reads, such as
product_model. - A field group collects related inputs, such as Product specifications.
- A location rule determines which editing screens show the field group. Each post saves its own values.
You’ll practice on a regular WordPress post, display its fields in Part 2, and move the setup to a dedicated product post type in Part 3. The free plugin covers all three lessons.
What do the six ACF menu items do?
Choose the features your project needs. Each menu has a specific job, and you can combine them as the site grows. Start with the content you need to manage and add the relevant feature when it solves a clear problem.
| Menu | Purpose | When to use it |
|---|---|---|
| Field Groups | Define extra inputs and use location rules to choose the editing screens where they appear. | Add a model number, author bio, or download field to an existing post or page. |
| Post Types | Register a collection of records with its own editing screens, such as products, projects, or jobs. | Create a Projects section and begin publishing with native titles, content, and featured images. |
| Taxonomies | Group records by industry, product category, region, or another classification. A taxonomy must be attached to a post type. | Add an Industry taxonomy to existing blog posts, or attach one to a post type registered by another plugin or by code. |
| Options Pages (PRO) | Create an admin screen for shared settings. With default storage, its values are available across the site. | Manage a shared sales email or footer details. The options page provides the settings screen, and a field group defines its inputs. |
| Tools | Import or export configuration such as field groups, post types, and taxonomies, or generate registration PHP. | Move definitions between environments, reuse a configuration, or back it up before editing. Migrate content records, saved values, and uploads through the site migration process. |
| Updates | Manage update-related tasks and activate an ACF PRO license. | Visit during setup and maintenance. Field groups, post types, and taxonomies define the content model. |
Field groups · Post types, taxonomies, and exports · Options Pages · PRO license activation
Start with one feature when it meets the requirement
- Add a download to existing posts. Create a File field in Field Groups, target Posts with the location rule, and render its link in the template.
- Publish a separate project collection. Register a Projects post type and start with the native title, editor, and featured image.
- Organize the existing blog by industry. Register an Industry taxonomy, attach it to Posts, and create terms such as Manufacturing and Renewable Energy.
These features can be selected independently, with their own requirements. A taxonomy needs a post type to classify. An options page typically needs a field group for its inputs. Saved field values need a template or component to display them. Existing WordPress content can provide the foundation for those requirements.
Combine features as the requirements grow
For a B2B catalog, use Post Types for Products, Taxonomies for product categories, and Field Groups for model numbers and specifications. Add an Options Page with a field group when the site needs shared sales contact details. Use Tools to move the definitions and Updates for plugin and license maintenance.
Your first milestone in this lesson is to save and display fields on an existing post. Move on to the post type and taxonomy setup in Part 3 when products need their own management workflow. Part 5 covers more examples of choosing the right feature.
1. Install the free ACF plugin
- Download the free ZIP file from the official ACF installation guide. Leave the file zipped.
- In the WordPress dashboard, go to Plugins → Add New Plugin → Upload Plugin. Choose the ZIP, click Install Now, then click Activate.
- Confirm that Advanced Custom Fields is active and that the ACF menu appears in the dashboard.
If Upload Plugin is unavailable, check your account permissions and hosting plan. If ACF PRO is already active, go straight to the next step.
2. Create a product field group
- Go to ACF → Field Groups → Add New. Name the group Product specifications.
- Add the five fields below. Select the field type, then enter the label and name. Use the exact names in the table so the PHP examples in later lessons can read them.
| Label | Field name | Type | Settings and sample value |
|---|---|---|---|
| Model number | product_model | Text | Set to Required. Use FC-304-50 as the sample value. |
| Material | product_material | Text | 304 stainless steel |
| Minimum order quantity | product_moq | Number | Set the minimum and step to 1. Enter 50. The template will add the unit when it displays the value. |
| Product photo | product_photo | Image | Set Return Format to Image ID. |
| Datasheet | product_datasheet | File | Set Return Format to File URL. Set Allowed File Types to pdf. |
- Under Settings → Location Rules, choose Post Type → is equal to → Post.
- Save the field group and open a test post to confirm that Product specifications appears in the editor.
The return format determines what PHP receives. Keep Image ID and File URL for this walkthrough. Creating a field group · Image field · File field
3. Enter and save a sample product
- Go to Posts → Add New Post. Set the title to FC-304-50 Stainless Steel Flange Coupling and add a short description of its intended use.
- In Product specifications, enter
FC-304-50,304 stainless steel, and50. Select a sample photo and a PDF you can share publicly. Add descriptive alt text to the image in the Media Library. - Save the draft and reopen it. Check that all five values are still present. In the next lesson, you’ll display those saved values in the post preview.
Troubleshoot a missing field group
- I can’t find Product specifications in the editor.
- Check that the group is active and the location rule targets Post. In the block editor, scroll below the content area and check the editor preferences if the panel is hidden. In the classic editor, check Screen Options.
- The field group appears on every blog post.
- The practice rule matches all regular posts. Part 3 narrows it to your product post type before you roll out the catalog.
- Which identifier goes into the code?
- Use the field name, such as
product_model. If you rename a field on a live site, plan how to migrate the existing values and update every template or integration that reads the old name.