Created
November 8, 2017 10:52
-
-
Save bigdigital/5aa522ee7c5f17c6d57c112888bbf602 to your computer and use it in GitHub Desktop.
The7 add tag to portfolio posts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', 'dt_register_taxonomy_for_object_type' ); | |
function dt_register_taxonomy_for_object_type() { | |
register_taxonomy_for_object_type( 'post_tag', 'dt_portfolio' ); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment