CodeWP offers a streamlined way to generate WordPress Custom Post Types (CPTs) with AI-driven code generation. This tool is designed for WordPress developers looking to easily create post types using register_post_type()
. Use our intuitive form to tailor your CPT, or prompt the AI for a more customized experience.
Getting Started
functions.php
file or a custom plugin.Post Type Name
custom_post_type_name
Provide a unique identifier for the post type. It should be lowercase and without spaces (e.g., book_review
).
Text Domain
my_text_domain
Input the text domain for localization. This ensures that your custom post type labels can be easily translated.
Support Child Themes
Toggle this option to include support for child themes, allowing your CPT to be accessible in child themes as well.
Singular Name
Book Review
Define the singular label for your post type.
Plural Name
Book Reviews
Set the plural label, which will appear in the WordPress dashboard.
Public Visibility
Enable or disable public visibility. When enabled, your CPT will be viewable on the frontend.
Has Archive
This toggle enables an archive page for your custom post type, allowing for better content organization.
Pro Tip: If you need additional features like custom taxonomies, be sure to visit our Taxonomy Generator tool.