How to pre-set WordPress settings for specific posts?
After scouring on the net and bouncing around, I figured out how to fix my problem. Install ACF and create your own post types. In Functions.php, add the following codes to default category for that post type. function add_pastorheart_category_automatically($post_ID) { global $wpdb; if(!wp_is_post_revision($post_ID)) { $pastorheartcat = array (15); wp_set_object_terms( $post_ID, $pastorheartcat, ‘category’); } } add_action(‘publish_pastors-heart’, … Read more