How do I add custom fields in WordPress?

Applies to: WordPress 6.x and later
Last updated: September 2025


Problem

Sometimes the default fields in WordPress (title, content, categories, tags) are not enough to capture all the information you need. For example, if you’re adding a “Team Member” post type, you might want extra fields like job title, phone number, or LinkedIn profile. Custom fields allow you to store and display additional metadata for posts, pages, or custom post types.


Solution

The easiest way to add and manage custom fields in WordPress is by using a plugin. Plugins provide a simple interface to create and organize fields without any coding.


Step-by-step instructions

Using the Advanced Custom Fields (ACF) Plugin

  1. Install and activate the Advanced Custom Fields plugin.
  2. In the WordPress dashboard, go to Custom Fields > Add New.
  3. Create a new Field Group and give it a name (e.g., “Team Member Details”).
  4. Add individual fields such as:
    • Job Title (Text field)
    • Phone Number (Text field)
    • LinkedIn Profile (URL field)
  5. Under Location Rules, choose where the fields should appear (e.g., only on the “Team Member” post type).
  6. Publish the field group.
  7. When editing a post or page that matches your rules, the new custom fields will appear for you to fill in.

Optional methods or tools

  • Pods Framework: Lets you add custom fields and link them with custom post types or taxonomies.
  • Meta Box: A lightweight and flexible plugin for creating custom fields.
  • Toolset Types: Provides a broader set of tools for custom content, including fields.

Best practices or tips

  • Group related fields together for easier content management.
  • Use the correct field type (e.g., URL, date, number) to ensure accuracy and consistency.
  • Plan your fields in advance to avoid redundancy or unnecessary complexity.
  • Combine custom fields with custom post types and taxonomies for a fully structured content system.

You may also like...