How to exclude post type from search but retain taxonomy archive listing
If you have set a post type to be excluded from search, you may have noticed that this has an odd drawback of also excluding the post type from any term archives for custom taxonomies as well. This is a detail coming from how WordPress core handles the query for the term archive. If you’re…
Read MoreCustomizing 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 MoreRecommended 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 MoreCustom 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 MoreCustom 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 MoreCustom 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 MoreUsing the Debug Info tab for Custom Post Type UI
If you have used oursupport 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 more…
Read MoreListing posts by post title in WP Admin
If you want to list your custom post type posts in alphabetical order when viewing the WordPress admin area, the following code will help. It should go in your active theme’s functions.php file or a custom plugin. function pluginize_order_cpt_by_title( $query ) { if ( ! is_admin() ) { return; } if ( ! $query->is_main_query() )…
Read MoreHow to add your custom post type to RSS feeds
Out of the box, WordPress does not include custom post types in RSS feeds. Because of this, you need to add the post types to the query yourself. You will add the following snippets to your theme’s functions.php file or if you want, to a custom plugin build just for your own website. Adding all…
Read MoreDuplicating post types and taxonomies registered with Custom Post Type UI
While it was actually not a planned feature, it is possible to use Custom Post Type UI to duplicate post types and taxonomies. If you have a planned list that are all going to have matching or similar labels and settings, then this handy trick will help get you set up quickly. Note: This will…
Read More