Last active
December 18, 2018 21:02
-
-
Save Olein-jp/0a9a34144d561783c74cbe12a6702cbd 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
<?php | |
if ( get_the_tags() ) { | |
foreach ( ( get_the_tags() ) as $tag ) { | |
echo $tag->name; | |
// echo '<span>' . $tag->name . '</span>'; こういう書き方もできる | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment