Skip to content
Arrow keys to move, Enter to open, Esc to closeAll results
Design and Builders · Guides

How to Create Custom Post Types and Fields With ACF

Use Advanced Custom Fields to register a custom post type, add fields, and show the data on the front end, without writing PHP for the registration.

Written by
WPresident Editorial
Updated
November 2026
Topic
Design and Builders

Custom post types let you organise content that is not a blog post or a page: products, events, team members, directory listings. Advanced Custom Fields (ACF) lets you create the post type, its taxonomies and the fields that hold its data from the WordPress admin, with no registration code.

The Advanced Custom Fields website
Advanced Custom Fields: advancedcustomfields.com.

Plan the content model first

Before you click anything, write down what you are storing. For a directory of agencies, for example:

  • Post type: Agency
  • Taxonomy: Country, Service
  • Fields: website URL, year founded, team size, logo, short description

Step 1: create the post type

  1. In the admin, go to ACF, Post Types, Add New.
  2. Enter the plural and singular names and a key such as agency.
  3. Choose supports (title, editor, featured image), set the archive and the URL slug, and enable “Show in REST API” if you plan to use it.
  4. Save.

Step 2: create taxonomies

Under ACF, Taxonomies, add Country and Service, attach them to the Agency post type, and choose whether each is hierarchical like categories or flat like tags.

Step 3: add a field group

  1. Go to ACF, Field Groups, Add New.
  2. Add fields with the right types: URL for the website, Number for team size, Image for the logo, Text Area for the description.
  3. Set the location rule: Post Type is equal to Agency.
  4. Use clear labels and instructions so editors know what to enter.

Step 4: show the data on the front end

In a PHP template you can output a field with get_field( 'website' ). In a visual builder such as Etch, bind the field with its dynamic data syntax, for example {this.acf.website}. To list entries, use the builder’s loop with the post type as the query.

Good practice

  • Use clear, lowercase field names and do not change them after you have content, as they are the keys in the database.
  • Save fields as local JSON so they live in your theme or plugin and can be versioned.
  • Validate and sanitise output. Use esc_html() and esc_url() in templates.
  • Keep post types in a plugin, not the theme, so switching themes does not lose your content.

Final thoughts

A well-planned custom post type makes content easier to edit, query and display. Spend time on the data model first. The clicking afterwards takes minutes.

Frequently asked questions

Do I need ACF Pro?

The free plugin can register post types, taxonomies and basic fields. Pro adds repeaters, flexible content, galleries and options pages.

Will my content disappear if I deactivate ACF?

The data stays in the database, but the fields, and the post types registered by ACF, stop appearing until it is active again.

W
Written byWPresident EditorialThe WPresident editorial team. We test products on real sites, score them with one public method and write up what holds up.

Keep reading

Design and Builders

The Best WordPress Page Builders in 2026

Seven WordPress page builders compared on markup, class systems, dynamic data, lock-in and agency workflow, with decision rules and a method to test them yourself.

Read more
WPresident EditorialNovember 2026
E-commerce

The Best WooCommerce Plugins in 2026

A WooCommerce toolbox sorted by job: subscriptions, card processing, checkout, product options, search and wishlists, with the real cost of each and a rule for a small stack.

Read more
WPresident EditorialNovember 2026

Get the Monthly Launch Report

One email a month: the best of last month's articles, new reviews and what changed in WordPress, without the noise.

No spam. Unsubscribe in one click.

Signed and sealed,
The WPresident

Press Esc to close. Use the arrow keys to move through results.