register_post_type() code with Basic and Advanced options — copy/paste or download a ready PHP snippet./books/my-book./books.
A WordPress Custom Post Type (CPT) lets you create structured content beyond posts and pages — like
Portfolio, Books, Products, Events, Testimonials, or Real Estate Listings.
This generator creates clean, copy-paste register_post_type() code with the correct labels, rewrite rules, editor supports, and REST API settings.
Use Basic mode for quick CPT setup, or Advanced mode when you need full control over visibility, admin menu behavior, permalinks, archive pages, and capabilities.
A CPT is a content type you register in WordPress so you can manage items like “Portfolio” or “Events” separately from regular posts.
Paste it into your theme’s functions.php (preferably a child theme) or create a small plugin and place the code there.
Check public and publicly_queryable, and ensure rewrite rules are flushed by saving Permalinks.
Yes if you want Gutenberg support and REST API endpoints. Disable only if you have a specific reason.
It creates an archive listing page for the CPT (example: /books) if rewrite is enabled.
Supports define which editor features appear (title, editor, thumbnail, excerpt, custom fields, etc.).
Yes. Add category and/or post_tag in the Taxonomies field (or register custom taxonomies).
public impacts front-end visibility; show_ui controls whether admin screens are shown.
Usually yes after adding or changing rewrite slugs. Go to Settings → Permalinks → Save.
No. Registering a CPT is lightweight. Performance depends on your queries, templates, and plugins.