Add Post Type Support to Custom Post Type

You may need to add support for a WordPress Custom Post Type after the post type has been registered, eg where a plugin or theme introduces new post types without all the required support.

You can do this using the function add_post_type_support().

Code

For example, to add author support to the post type example_cpt, add the following code in your child theme functions.php:
add_post_type_support( 'example_cpt', 'author' );
Article published 25th March 2020
Last modified 02nd November 2023

Loading