Guides

Custom Post Types and Custom Fields: Structuring Content in WordPress

How custom post types, taxonomies and custom fields let WordPress manage structured content like projects, team members, properties, courses and jobs, with examples, tools like ACF and best practices.

Custom Post Types and Custom Fields: Structuring Content in WordPress
On this page
  1. The three building blocks
  2. Examples
  3. Why structure beats free-form pages
  4. Tools
  5. Best practices
  6. Directory-style sites
Key takeaways
  • Custom post types, taxonomies and fields manage structured content like properties or courses.
  • Structure gives consistent design, easy editing, filtering and SEO benefits.
  • Register post types in a plugin, plan fields first and add schema from field data.

Out of the box, WordPress has posts and pages. But many businesses need to manage other kinds of content, such as projects, doctors, properties, courses or job openings, each with specific details. Custom post types and custom fields make this clean and easy to manage.

The three building blocks

  • Custom post types: new content types, like "Projects" or "Properties", with their own menu in the dashboard
  • Custom taxonomies: ways to group them, like property type or course category
  • Custom fields: structured details, like price, location, duration or qualifications

Examples

BusinessPost typeFields
Real estatePropertiesPrice, BHK, area, location, RERA number, floor plans
ClinicDoctorsQualifications, specialities, timings, photo
Coaching instituteCoursesDuration, fees, batch dates, eligibility
Agency or builderProjectsClient, location, services, gallery
Any businessJobsLocation, type, experience, deadline

Why structure beats free-form pages

  • Consistent design: every item uses the same template
  • Easy editing: staff fill in clear fields instead of designing pages
  • Filtering and search: by location, price, category
  • SEO: clean URLs, archive pages and structured data from fields

Tools

  • Advanced Custom Fields (ACF) and Meta Box for fields
  • Custom code registering post types in a small plugin
  • Plugins with UIs for creating post types without code

Best practices

  • Register post types in a plugin, not the theme, so content doesn't disappear if you change themes
  • Plan fields before building: what information does every item need?
  • Create templates for single items and archives
  • Add schema markup using field data; see schema markup

Directory-style sites

For large listing sites, see building a directory website on WordPress.

Need structured content set up properly? It's part of custom theme development and custom plugin development.

Need help with your website?

I'm Sameer, a freelance WordPress developer building fast, SEO-friendly websites since 2020. Tell me what you need and I'll reply with a plan and a fixed quote within 24 hours.

Found this useful? Share it:
Contact

Let's build your next website

Available for freelance projects, agency white-label work and long-term maintenance. Feel free to pass this along to your team or company.

Your details are emailed to me, then WhatsApp opens so we can chat right away.

Chat now