How to exclude post-tag taxonomy for a custom post type?

Try this to unregister the post_tag taxonomy from the Custom Post Type. function wpdocs_unregister_tags_for_posts() { unregister_taxonomy_for_object_type( ‘post_tag’, ‘post’ ); } add_action( ‘init’, ‘wpdocs_unregister_tags_for_posts’ ); Update the ‘post’ to your custom post type. Docs: https://developer.wordpress.org/reference/functions/unregister_taxonomy_for_object_type/ Also, you’ve defined the following twice in your $args ‘taxonomies’ => array(‘product’), ‘taxonomies’ => array(),

how to create custom taxonomy drop downs for parents and child

<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?> <tr class=”form-field term-parent-wrap”> <th scope=”row”><label for=”parent”><?php _ex( ‘Parent’, ‘term parent’ ); ?></label></th> <td> <?php $dropdown_args = array( ‘hide_empty’ => 0, ‘hide_if_empty’ => false, ‘taxonomy’ => $taxonomy, ‘name’ => ‘parent’, ‘orderby’ => ‘name’, ‘selected’ => $tag->parent, ‘exclude_tree’ => $tag->term_id, ‘hierarchical’ => true, ‘show_option_none’ => __( ‘None’ ), ); /** … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)