• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

nSiteful Web Builders

Building a Better Web - One Site at a Time.

  • Home
  • About
    • Testimonials
    • Resources
  • Web Sites
  • Online Marketing
  • WordPress Support
    • Customized WordPress Training
    • 60-for-60 Sessions
  • Web Applications
  • Blog
    • Archive Listing Minimalistic
    • Blog Articles Grouped by Category
    • Case Studies
    • General
    • Portfolio
    • Reviews
    • Snippets
    • Techniques
  • Contact Jeff
    • Purchase Retainer Consulting Hours
    • About Retainer Consulting Hours

By Jeff Cohan, November 16, 2018

Dive Into WordPress Custom Post Types – Part 3

Last updated March 8th, 2023 at 09:59 am

dive into preamble

This is one of a series of articles about the why/when/how of WordPress Custom Post Types (CPTs). The articles are geared to WordPress developers who may have little or no experience with custom post types, with the hope that what I share will remove some of the mystery associated with CPTs and encourage some of you to dive right in.

toc for dive into cpt

Posts in this Series

  1. Dive Into WordPress Custom Post Types – Part 1
  2. Dive Into WordPress Custom Post Types – Part 2
  3. Dive Into WordPress Custom Post Types – Part 3

Before I get into the techniques of creating custom post types, I want to step back and look at the larger issue of custom content.

Custom Post Type < > Custom Content

The title of this series is “Dive into WordPress Custom Post Types”.

But I cannot emphasize enough that, technically, a custom post type — as in the thing you create using the register_post_type() function — is merely the foundational component of what I think of (and what I recommend you think of) as a “custom content module”. In fact, registering a custom post type is probably the simplest and easiest part of creating a custom content module.

Custom Content Module Defined

I define a custom content module as consisting of these components:

  • the registered custom post type (required, duh)
  • custom fields (technically optional but practically required)
  • custom taxonomy/ies (optional)
  • custom templates for displaying custom content on the front end (required)

I say that custom fields are practically required though technically optional because without them, a custom post type is nothing more than a post or a page (depending on what you specified when registering it).

(Yes, I suppose you could create a new post type without custom fields for content you want to keep separate from your default blog. But there are other ways to achieve this kind of segmentation, like with standard categories and post tags. Anyway, if you disagree with me, I certainly welcome your comments.)

What I’m Talking About in this Series

The types of custom content I’ll be talking about are similar to the examples from the first post in this series:

  • Books you’ve authored (or read)
  • Staff directory
  • Testimonials
  • Favorite movies
  • Recipes
  • Frequently Asked Questions
  • Board of Directors

Up Next

My plan for the next post in this series is to put it all together using a real-world solution implemented in one of my web projects.

If you haven’t already done so, check out and bookmark the WordPress codex documentation for register_post_type().

Related Posts

  1. Dive Into WordPress Custom Post Types – Part 2
  2. Dive Into WordPress Custom Post Types – Part 1
  3. Making Sense of WordPress Post Formats
  4. How to Create a Simple Custom Events Plugin
  5. Use Custom Fields to Hide Stale Posts
  • Choose the best match.

Written by Jeff Cohan · Categorized: Techniques · Tagged: Advanced Custom Fields, Custom Fields, Custom Post Types, WordPress

  • Choose the best match.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

mailchimp signup

Subscribe to get notified when new articles are published. Unsubscribe any time. No spam. I promise. Check out my newsletter archives.

social

Twitter Facebook LinkedIn

Recent Articles

  • Use Case for Custom Post Type: “In The News” March 10, 2023
  • Create a Custom Shortcode to Display a MemberPress Membership Price ANYWHERE on Your Website February 5, 2023
  • Avoid Direct Styling; Use CSS Instead September 21, 2022
  • Blog Tags: What They Are (and What They’re Not) August 5, 2022
  • How to Create a Simple Custom Events Plugin May 24, 2022

Filter By Category/Tag

Categories

  • Case Studies (7)
  • General (61)
  • Portfolio (5)
  • Reviews (12)
  • Snippets (16)
  • Techniques (38)

Popular Tags

Advanced Custom Fields Blogging Child Themes Content Marketing CSS CSS Grid Customer Service Custom Fields Custom Post Types Diagnostics Facebook FooGallery Genesis Gutenberg HTML Images iPhone Libra Live Chat Marketing Media MemberPress MemberPress Courses mu-plugins MySQL Photo Gallery php Pinterest Plugins Post Formats Pricing Project Management Security SEO Seth Godin Shortcodes Social Networking Surveys Taxonomies Trello Twitter Video Web design Web forms WordPress

siteground wp hosting

Web Hosting

wp101

EasyWordPresstutorialvideosforbeginners.
MemberPress CTA

Footer

Background

Web Sites | WordPress Support | Web Applications.

Formally trained in liberal arts and education (I have a B.A. in Government from Harvard and studied Secondary Education at Rutgers Graduate School), I have honed my skills in the communication arts and sciences as a teacher, trainer, instructional designer, writer, photographer, calligrapher, helpdesk manager, database programmer, and multimedia developer.

(I've also been a group counselor, waiter, bartender, bicycle messenger boy, computer salesman, carpenter's helper, financial analyst, and school board president.)

Tech

Systems since 1983.
Web sites since 1994.
PHP since 2001.
WordPress since 2007.

Contact

770-772-5134
Email Jeff
Send Money
All Ways

Copyright 2023, nSiteful Web Builders, Inc.

 

Subscribe

Pardon the interruption. I know popups can be annoying. But I’d love to have you as a subscriber.

Sign up to be notified when new articles are published. Unsubscribe any time.

* indicates required

Powered by MailChimp

×