Created
August 5, 2021 11:04
-
-
Save steelydylan/f3cb5f315b8c8f30d991160a562ba90d 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
<li> | |
「<a href="<?php the_permalink() ?>"><?php the_title(); ?></a>」の投稿IDは「<span style="color:skyblue"><?php echo get_the_ID(); ?></span>」 | |
タグIDは「<?php | |
$posttags = get_the_tags(); | |
if ( $posttags ) { | |
foreach ( $posttags as $tag ) { | |
echo $tag->term_id. ','; | |
} | |
} | |
?> | |
」 | |
</li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment