Advanced WordPress CPT & Taxonomy Generator
WP Advanced CPT Engine
Documentation

1. Core Information

Position: 5 (Below Posts)

2. Routing & API Access

3. Advanced Capabilities

4. Editor Supports & Taxonomies

Editor Panels ('supports')

Integrated Taxonomies

functions.php / plugin.php

Documentation: Advanced Features Explained

1. Custom Rewrite Slug

By default, WordPress uses the CPT Key for the URL structure. If your CPT key is book_review, your URLs look like /book_review/my-review/. By setting a custom rewrite slug to review, your URLs cleanly become /review/my-review/ while keeping the backend database key distinct.

2. REST API Base Customization

When building headless WordPress sites with Next.js or React, the REST API is crucial. Changing the REST Base allows you to query your CPT at a clean endpoint. Example: Setting it to projects changes the API route to /wp-json/wp/v2/projects.

3. Admin Menu Position

Control exactly where your new CPT appears in the left-hand WordPress admin dashboard. Examples: 5 = Below Posts, 20 = Below Pages, 60 = Below Appearance, 100 = Bottom.

4. Exclude From Search

Check this box if your CPT is used for backend utilities (like slider images, footer templates, or testimonials) that users should NEVER find when they use the search bar on your website's frontend.

5. Delete With User

A critical feature for GDPR. If your CPT represents user-generated content (like a "Profile" or "Forum Post"), checking this ensures that if the WordPress User is deleted from the database, all their authored CPTs are wiped out simultaneously.

6. Custom Capability Type & Map Meta Cap

Instead of treating your CPT like a standard 'post', changing the capability type to custom (e.g., 'book') means you can use role managers to explicitly grant users the ability to edit_books without giving them the ability to edit_posts. "Map Meta Cap" automates the complex mapping of these bespoke permissions.

7. Integrated Taxonomy Generator

Custom Post Types usually need custom categorization. Toggling the Taxonomy Generator writes a second block of code (register_taxonomy) specifically linked to your new CPT. Example: Creating a "Movie" CPT and attaching a "Genres" taxonomy to it.

How to install this code:

1. Generate your code using the tool above.
2. Click "Copy Code".
3. Navigate to your WordPress installation via FTP or File Manager.
4. Paste the code into a custom plugin file, OR place it at the very bottom of your active theme's functions.php file.
5. Important: After saving the code, log into your WordPress Dashboard, go to Settings > Permalinks, and simply click "Save Changes". This flushes the rewrite rules and prevents 404 errors on your new CPT URLs.