Skip to content

Instantly share code, notes, and snippets.

@bigdigital
Created November 8, 2017 10:52
Show Gist options
  • Save bigdigital/5aa522ee7c5f17c6d57c112888bbf602 to your computer and use it in GitHub Desktop.
Save bigdigital/5aa522ee7c5f17c6d57c112888bbf602 to your computer and use it in GitHub Desktop.
The7 add tag to portfolio posts
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