Prefixed variables with mf_. Avoid conflicting.

This commit is contained in:
Frank419
2024-08-29 15:33:08 +08:00
parent 82b47c9804
commit 45e080cfba
6 changed files with 48 additions and 48 deletions
+3 -3
View File
@@ -4,14 +4,14 @@ if ( !defined( 'WPINC' ) ) {
}
?>
<?php $userid = get_the_author_meta( 'ID' ) ?>
<?php $mf_userid = get_the_author_meta( 'ID' ) ?>
<div class="singular-author">
<div class="author-card">
<div class="author-avatar">
<?php echo get_avatar( $userid, 80 ); ?>
<?php echo get_avatar( $mf_userid, 80 ); ?>
</div>
<div class="author-description">
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( $userid ) ) ?>"><?php the_author() ?></a>
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( $mf_userid ) ) ?>"><?php the_author() ?></a>
<p class="author-tagline"><?php the_author_meta( 'description' ) ?></p>
</div>
</div>