🔍 Hook Finder ⚙️ wp-config Generator 📦 CPT Generator 💰 Project Estimator ↗ Portfolio
📦 Code Generator

Custom Post Type Generator

Fill in the form to generate production-ready register_post_type() and register_taxonomy() PHP code. PHP 8+ compatible.

public
Show in admin and front end. Enables all public features.
show_ui
Show admin UI (edit screen, list view).
show_in_menu
Show in the admin menu sidebar.
has_archive
Enable archive template (yoursite.com/post-type/).
hierarchical
Allow parent-child relationships (like Pages).
exclude_from_search
Hide from WordPress search results.

Select the features supported by this post type:

show_in_rest
Expose in REST API. Required for Gutenberg editor support.
with_front
Prepend site front base to URLs.
Add Custom Taxonomy
Generate register_taxonomy() code below.
PHP Generated Code