Skip to content
The Admin Bar
  • Get Involved
    • Facebook Group
    • Barfly Community
    • TABLE Mastermind
  • Learn
    • Articles
    • Events
    • Newsletter
    • YouTube
    • WordPress Professionals Survey
    • SEO Weekly
    • Security Weekly
    • Accessibility Weekly
  • Products
  • About
  • Free Stuff

How to Set Up a Custom Post Type for Personal Trainers on a Gym Website

I’m currently working on a new website for a gym client, and one of the features they requested is a dedicated page showcasing all the personal trainers across their various locations. Initially, …

Kyle Van Deusen

Kyle Van Deusen

Published:

January 16, 2024

Filed Under:

General

Kyle Van Deusen

Kyle Van Deusen

The Admin Bar

After spending 15 years as a graphic designer and earning a business degree, I launched my agency, OGAL Web Design, in 2017. A year later, after finding the amazing community around WordPress, I co-found The Admin Bar, which has grown to become the #1 community for WordPress professionals. I'm a husband and proud father of three, and a resident of the Commonwealth of Virginia.

Custom post type
This content contains affiliate links. View our affiliate disclaimer.

I’m currently working on a new website for a gym client, and one of the features they requested is a dedicated page showcasing all the personal trainers across their various locations. Initially, I set this up with static information to send over as a proof for approval. Now that the client has approved the design, I’m transitioning the setup to use custom post types for each trainer. This approach will allow us to dynamically manage and display trainer information across the site.

In this post, I’ll walk you through the process of creating a custom post type for trainers, setting up custom fields, and dynamically displaying the information on the website. This method is not only efficient but also makes future updates and management much easier.

YouTube video

Why Use Custom Post Types for Staff Pages?

Setting up custom post types for staff members, like trainers in this case, has several advantages:

  1. Easier Querying Across the Website: You can dynamically pull trainer information into different sections of the site, such as location pages or other relevant areas.
  2. Simplified Management: Updating trainer details, such as their bio or image, can be done directly in the backend without touching the design or layout.
  3. Consistency: Using a single template ensures that all trainer profiles look uniform and professional.

If this sounds like something you’re interested in, let’s dive into the process.

Setting Up the Custom Post Type

Step 1: Create the Custom Post Type

To get started, I used Advanced Custom Fields (ACF) Pro, but you can also use the free version for this setup. Here’s how I created the custom post type:

  1. Navigate to ACF > Post Types in the WordPress dashboard.
  2. Click Add New and name the post type “Trainers” (plural) and “Trainer” (singular).
  3. Set the post type key to trainers. While the key isn’t critical, it helps keep things organized.
  4. In the advanced configuration, I removed unnecessary fields like the featured image and editor. Instead, I opted for custom fields to keep the interface clean and focused.

Once saved, the new “Trainers” custom post type appeared in the WordPress dashboard.

Step 2: Create Custom Fields for Trainers

Next, I set up the custom fields that would store the trainer-specific information:

  1. Go to ACF > Field Groups and click Add New.
  2. Name the field group “Trainers” to match the custom post type for clarity.
  3. Add the following fields:
    • Trainer Bio: Use a WYSIWYG editor to allow for rich text formatting like bold, italics, and underlining.
    • Trainer Image: Use the image field type. I explicitly named this field “Trainer Image” to avoid confusion when connecting dynamic data later.
  4. Set the field group to display only when the post type is “Trainer.”

After saving, the custom fields were ready to use.

Adding Trainer Profiles

With the custom post type and fields in place, I added profiles for two trainers as an example:

  1. Navigate to Trainers > Add New.
  2. Enter the trainer’s name in the title field.
  3. Add placeholder text (e.g., Lorem Ipsum) for the bio while waiting for the client’s final content.
  4. Upload the trainer’s image using the custom image field.
  5. Click Publish.

I repeated this process for both trainers, Chris Ruby and Brent, and confirmed that their profiles appeared in the “All Trainers” section of the dashboard.

Displaying Trainer Profiles Dynamically

Step 1: Setting Up the Query Loop

To display the trainer profiles dynamically on the website, I used a query loop block:

  1. Edit the Trainers Page and add a new query loop block.
  2. Configure the query loop to pull posts from the “Trainers” custom post type.
  3. Adjust the layout to ensure each trainer profile takes up 100% width for a clean, single-column design.

Step 2: Connecting Dynamic Data

Next, I connected the dynamic data fields to display the trainer information:

  1. Trainer Name: Enable dynamic data for the name field and set the content source to “Title.”
  2. Trainer Bio: Enable dynamic data for the bio field and set the content source to “Post Meta.” Use the key trainer_bio to match the custom field name.
  3. Trainer Image: Enable dynamic data for the image field and set the content source to “Post Meta.” Use the key trainer_image.

After connecting the data, I added a vertical gap of 20 pixels between each trainer profile for better spacing.

Step 3: Preview and Test

I saved the changes and previewed the page on the front end. The trainer profiles displayed perfectly, with their names, bios, and images dynamically pulled from the custom post type. I also tested the design on mobile and tablet breakpoints to ensure responsiveness.

Wrapping Up

Setting up custom post types for staff pages is a straightforward process that can save time and effort in the long run. In this example, I created a custom post type for trainers, but the same approach can be applied to other types of content, such as gym locations or classes. By using custom fields and dynamic data, you can create a flexible and scalable system for managing website content.

This setup took just a few minutes, and the result is a dynamic, easy-to-manage staff page that looks professional and is future-proof for updates. If you’re building a website with similar needs, I hope this guide helps you streamline the process!

Share This Article!
FacebookXLinkedInEmail
Kyle Van Deusen

Kyle Van Deusen

The Admin Bar

After spending 15 years as a graphic designer and earning a business degree, I launched my agency, OGAL Web Design, in 2017. A year later, after finding the amazing community around WordPress, I co-found The Admin Bar, which has grown to become the #1 community for WordPress professionals. I'm a husband and proud father of three, and a resident of the Commonwealth of Virginia.

Come Join Us!

Join the #1 WordPress Community and dive into conversations covering every aspect of running an agency!

Join Group

Kyle Van Deusen

Community Manager

Latest Events

September 16, 2025

Termageddon 2.0

Better Tools, Smoother Workflows, Happier Clients

August 19th, 2025

Which WordPress Page Builder is the Most Accessible?

The 2025 Page Builder Accessibility Report

August 15, 2025

Managing Your Agency with Moxie

Can this all-in-one solution help you streamline your agency and calm the chaos?
Care Plan Toolkit

Save time, boost profits, and confidently manage client websites with proven tools, tips, and resources.

Download Free
Bento Toolkit
The Friday Chaser

Wash down the week with the best of The Admin Bar! News, tips, and the best conversations delivered straight to your inbox every Friday!

Subscribe Today

More Articles

Cleanshot 2025 09 08 at 15.22.24@2x
September 10, 2025

Can you trust AI to write your website’s Privacy Policy?

Yes, AI can write your Privacy Policy — but chances are you (and the law) won’t like the result.

Barfly profile melodie moore
September 8, 2025

Member Spotlight: Melodie Moore

Melodie Moore didn’t start in tech—she started with hula hoops. What began as a professional hoop …

Drop rankings
September 4, 2025

Organic Traffic Dropped Suddenly? Here’s Why (And How to Fix It)

Seeing a sudden drop in your organic traffic? Don’t panic! Find out what causes organic traffic to decrease – from SERPs to technical issues – and how to fix it.

2025phone

Join the #1 WordPress Community

The Admin Bar community is at the heart of what we do. Join in on the daily conversation and get involved.

Request Membership
The Admin Bar logo.

Explore

Community

Events

Articles

Products

Newsletter

Agency Report Card

Care Plan Toolkit

Noted!

Barfly Login

Policies

Privacy Policy

Terms of Service

Affiliate Agreement

Affiliate Disclaimer

Accessibility Statement

Privacy Settings

Misc.

Advertise

Login

Contact

© 2017-2025 The Admin Bar (a Division of OGAL Web Design) — All Rights Reserved

The Admin Bar logo.
  • Get Involved
    • Facebook Group
    • Barfly Community
    • TABLE Mastermind
  • Learn
    • Articles
    • Events
    • Newsletter
    • YouTube
    • WordPress Professionals Survey
    • SEO Weekly
    • Security Weekly
    • Accessibility Weekly
  • Products
  • About
  • Free Stuff
YouTube Facebook
Sell More Care Plans