Customizing permalinks

When it comes to permalink customization, outside of slugs for the content types themselves, we do not have any official or formal settings for customizing permalink structures. This is because with the plugin, we’ve aimed to focus on just what can be set and created via the register_post_type() and register_taxonomy() functions. Because of that, we…

Read More

Recommended Plugins

We recommend these plugins to be used in conjunction with Custom Post Type UI to further enhance your website. Permalinks Customizing permalinks to formats you’re wanting. Meta Data Content Type Management Migrating post content between post types and administration General debugging Query monitor can be used to inspect queries being made, templates being used for…

Read More

Custom Post Types and Divi

Customizing Search Module By default, the Divi Search Module only searches posts and pages, depending on the settings configured in the module itself. The code snippet below allows to retain those settings, but also add in the post types registered with Custom Post Type UI to be considered with the search as well. Blog Module…

Read More

Custom Post Type UI and WP-CLI

If you weren’t aware, you can actually do a good amount of of administration and site management via your computer terminal console with a tool like WP-CLI. We are not going to go into all of the powerful things it can do out of box, as that’s a documentation site on its own. We are…

Read More

Custom Post Type UI Hooks

Current as of version 1.12.0. Reach out if you’ve found one we’re missing. Custom Post Type UI has 107 action and filter hooks available for usage. Some may prove more useful than others. Some are used primarily for integration with Custom Post Type UI Extended. Would love to hear how you’re using any of them.…

Read More

Using the Debug Info tab for Custom Post Type UI

If you have used our support forums at any time in the past number of years, chances are you’ve received a response from Michael, helping debug whatever issue you were experiencing at the time. Hopefully Michael has proved helpful and resolved a given issue swiftly and timely. However, there are cases where Michael just needed…

Read More

Save CPTUI settings data to file

If you ever find need to save your Custom Post Type UI settings data to a file, on top of to the database like normal, the following snippet should help you out. This will be particularly useful if you find need to version control the settings, as databases aren’t easy to version control themselves. What…

Read More

Changing posts per page for a post type

By default, post type archives inherit the same posts per page amount as the Reading settings page and the “Blog pages show at most” setting. However, depending on your use case, you may need to change that value just for a given post type. Utilizing the pre_get_posts action hook, you can easily modify the posts…

Read More

Creating an all term taxonomy archive

The following was originally publisehd at How to Create a Taxonomy Archive: Excuse Me, Can You Show Me All Your Grey Poupons? and has been modified to be a more straightforward documentation reference. Created an archive for all terms from a taxonomy. WordPress does not provide the easiest way to achieve post archives that have…

Read More

How to get dashes in post type/taxonomy slugs for URL SEO purposes

Custom Post Type UI version 1.3.0 introduced JavaScript that enforces underscore characters in slugs. When a user tried to type a dash in the slug field, it gets automatically switched to an underscore. We have always tried to use smart defaults in CPTUI for our users. The slug field is another place where we continue that. In WordPress core,…

Read More