• 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

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

In the next post in this series, we’ll look at the code for registering a basic custom post type for a book. I’ll show you a “verbose” version (about 50 lines of code) as well as an alternate shorter version that takes advantage of the defaults built into the register_post_type() function. I’ll explain some of the key parameters of the function and, finally, I will show you how you can generate the code using GenerateWP, a popular online code generator.

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

Related Posts

  1. Making Sense of WordPress Post Formats
  2. How to add an About Us blurb to every WordPress blog post
  3. Dive Into WordPress Custom Post Types – Part 1
  4. Dive Into WordPress Custom Post Types – Part 2
  5. How to use Advanced Custom Fields with Genesis
  • 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

  • How to Create a Simple Custom Events Plugin May 24, 2022
  • Make your Web Site the Heart & Hub of your Online Marketing Strategy March 24, 2022
  • Why SiteGround Hosting? March 11, 2022
  • Tent Birth and Breastfeeding Services January 31, 2022
  • Trello Board Tour: Jeff’s Blogging Board January 30, 2022

Filter By Category/Tag

Categories

  • Case Studies (7)
  • General (61)
  • Portfolio (5)
  • Reviews (12)
  • Snippets (15)
  • Techniques (35)

Popular Tags

Advanced Custom Fields Blogging BlueHost Child Themes Content Marketing CSS Customer Service Custom Fields Custom Post Types Diagnostics Facebook FooGallery Genesis HTML Images iPhone Libra Live Chat Marketing Media MemberPress mu-plugins MySQL online strategy Photo Gallery php Pinterest Plugins Post Formats Pricing Project Management SEO Seth Godin Shortcodes Social Networking Surveys Taxonomies Trello Twitter Video Web applications Web design Web forms WooThemes 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 2022, 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

×