Register custom post types without Pods

Published Updated 3 min read

Pods is well maintained and does a lot: custom post types, custom fields, relationships between post types, front-end templating, and an admin UI that lets non-developers add fields without touching code. The vulnerability disclosed in August 2026 was responsibly disclosed and patched, and the plugin is safe to run once updated. The disclosure is not a reason to switch.

It is a good moment to ask what you use, though. Most sites installed Pods to register a custom post type or two with a handful of fields. The relationships, the templating, the magic tags and the field builder were never switched on, yet all of it is still there, so the site carries the whole plugin to use the few lines that call register_post_type.

A plugin that registers exactly your post types is sixty to a hundred lines of PHP, with no settings page, no AJAX handlers, no user-facing input and almost no attack surface.

Surface area, not code quality

Pods ships a visual field builder, a relationships system, Pods Pages for custom front-end display and a templating language with magic tags, alongside the part most people installed it for: registering post types and attaching meta fields to them.

For a site that only uses that last part, the rest still runs, and code that runs is code that can be audited, found vulnerable and exploited. Moving to a smaller plugin does not mean the smaller plugin is better written. It means there is far less of it to audit.

Fields in the plugin file, not the database

The plugin calls register_post_type on init, adds meta boxes with add_meta_boxes, and saves values on save_post with nonce verification. There is no settings page and no AJAX handler; the fields are defined in the plugin file. Describe a taxonomy (its name, the post type it attaches to, whether it is hierarchical, whether it has an archive) and a register_taxonomy call sits alongside.

The trade is direct. A new field means adding it to the meta box callback and adding the matching save line in the handler. Where a developer makes code changes anyway, that costs nothing.

Keep Pods if your editors change the data model

If a client or editor adds or changes fields from the admin, stay on Pods. Changing the data model without a code deploy is exactly what it is for.

If you use Pods relationships to link post types, those queries are baked into your templates and would need rewriting with WP_Query arguments. If Pods templates or magic tags appear anywhere in your theme, they would break, and removing them from a content-heavy site is a real project.

If none of that applies and Pods only registers a fixed set of post types with fixed fields, a purpose-built plugin is a reasonable replacement.

Switching without touching your content

Changing what registers the post type does not touch the database. Posts, taxonomies and meta values stay exactly as they are, and if the post type slugs and meta key names match what Pods used, existing content renders as before.

So check the meta keys first. Pods stores each field under the slug you gave it in the Pods admin. To confirm, call get_post_meta on a known post ID with no key argument, which returns all of that post's meta, or run SELECT meta_key FROM wp_postmeta WHERE post_id = [your post ID].

With the new plugin active, check that each post type is in the admin menu and your existing posts are visible, then deactivate Pods. If anything breaks, reactivating Pods brings it all back; the data was never touched.

What you get

Included

  • Registration of named custom post types with labels, archive, and menu icon via register_post_type
  • Meta boxes for each post type with text, number, date, URL, and select fields
  • Nonce-verified meta save on save_post with sanitization per field type
  • Custom taxonomy registration via register_taxonomy when you describe the taxonomy in the prompt

Not included

  • A visual admin UI for adding new post types or fields without editing code
  • Relationships between post types: those need WP_Query arguments written by hand
  • Front-end templating, Pods Pages, or magic tags
  • File upload or repeater fields without additional prompt work
  • Import of Pods field configuration: you describe your CPTs and fields in the prompt yourself

Pods does the things on the right. This build covers the part most sites use.

Build it in Steem

The button opens the builder with this guide's prompt filled in, so you can change anything before it runs. Nothing is built, and nothing is charged, until you send it.

Build this pluginAbout 55 credits. The free plan includes enough for one.
Read the prompt (144 words)

Build a WordPress plugin that registers two custom post types: Portfolio and Testimonial. For Portfolio: labels Portfolio (singular) and Portfolios (plural), supports title, editor, and thumbnail, has_archive true, menu_icon dashicons-portfolio, public true. Add a meta box titled Portfolio Details with fields for Project URL (text input, meta key portfolio_project_url), Client Name (text input, meta key portfolio_client), and Completion Date (date input, meta key portfolio_completion_date). For Testimonial: labels Testimonial (singular) and Testimonials (plural), supports title and editor, has_archive false, menu_icon dashicons-format-quote, public true. Add a meta box titled Testimonial Details with fields for Client Company (text input, meta key testimonial_company) and Rating (number input 1 to 5, meta key testimonial_rating). Save all meta fields on save_post using wp_verify_nonce for security, skip autosaves, and sanitize each value with sanitize_text_field or intval as appropriate. Register post types on init. Do not use any framework or external library.