Exclude Custom Post Type & Pages From Auto-Tag Function
In save_post action you can access to the objet of the saved post and check the post type before tagging it: add_action( ‘save_post’, ‘add_authors_name’, 10, 2 ); function add_authors_name( $post_id, $post ) { // The post types you want be tagged to $valid_post_types array $valid_post_types = array( ‘post’, ‘community’ ); if( in_array( $post->post_type, $valid_post_types) ) … Read more