Created
July 9, 2024 12:22
-
-
Save jmabbas/1d22d1ff20a8c7f07ec4f1404808399a to your computer and use it in GitHub Desktop.
Tokoo - Single post tags
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
function tokoo_post_meta() { | |
?> | |
<aside class="entry-meta"> | |
<div class="vcard author"> | |
<?php | |
echo '<div class="label">' . esc_html__( 'Posted by', 'tokoo' ) . '</div>'; | |
echo sprintf( '<a href="%1$s" class="url fn" rel="author">%2$s</a>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), get_the_author() ); | |
$tags_list = get_the_tag_list( '', esc_html__( ', ', 'tokoo' ) ); | |
if ( $tags_list ) : | |
?> | |
<span class="tags-label"><?php echo esc_html__('Tags:', 'tokoo');?></span> | |
<?php | |
echo wp_kses_post( $tags_list ); | |
endif; | |
?> | |
</div> | |
<?php tokoo_posted_on(); ?> | |
</aside> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment