Last active
November 18, 2016 01:17
-
-
Save senooat/a657ba3fd52d0272fb110e33f3da99f2 to your computer and use it in GitHub Desktop.
This file contains 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
$taxonomy = 'タクソノミー名'; | |
$terms = wp_get_post_terms( $post->ID, $taxonomy ); | |
if ( $terms && ! is_wp_error( $terms ) ): | |
foreach ( $terms as $term ): | |
$term_id = $term->term_id; | |
$term_name = $term->name; | |
$term_slug = $term->slug; | |
$term_link = get_term_link( $term_id, $taxonomy ); | |
endforeach; | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment