I want to use the ordinary “tags” (like the tags on blog posts) with my custom post type. But I can’t get them to appear on the edit page. In ACF -> Hide on screen, the “Tags” checkbox is not checked. (Nor is “Categories” for that matter, and they don’t show up, either.)
After googling around, I added 'taxonomies' => array('post_tag'),
to my $args array when registering the post type in functions.php. That didn’t help. I also added the following to functions.php (although I think this is just to help with archives on the front-end – my problem is that I don’t even see the place on the back-end to enter the tags):
function wpa_cpt_tags( $query ) {
if ( $query->is_tag() && $query->is_main_query() ) {
$query->set( 'post_type', array( 'post', 'myposttype' ) );
}
}
add_action( 'pre_get_posts', 'wpa_cpt_tags' );
Still nothing. What am I missing?