-
Hello !
here is the code single.php of my theme. I just want to change the link to redirect to the profile userpro. I want to keep displaying the author with my theme.
can you give me a hand ! please/*— Author info —————————–*/
if ( !isset( $st_Settings[‘author_info’] ) || !empty( $st_Settings[‘author_info’] ) && $st_Settings[‘author_info’] == ‘yes’ ) {$st_[‘user_id’] = get_the_author_meta( ‘ID’ );
$st_[‘upic’] = get_avatar( get_the_author_meta( ‘user_email’ ), ‘110’ );
$st_[‘desc’] = get_the_author_meta( ‘description’ ) ? wpautop( do_shortcode( get_the_author_meta( ‘description’ ) ) ) : ”; ?><div class=”single-author-info”>
<div class=”single-author-upic”>“><?php echo $st_[‘upic’] ?></div>
<h5><?php echo get_the_author_meta( ‘display_name’ ); ?></h5>
<?php echo $st_[‘desc’]; ?>
Wrap the author display name with:
(Just example) the text should be his display name, this gives you a basic idea.
PHP1234<?phpglobal $userpro;?><a href="<?php echo $userpro->permalink( get_the_author_meta('ID') ); ?>">.......</a>I have a little trouble so I put a php code with shortcode. 😉
thanks !
The topic ‘[Resolved] Change link author on article’ is closed to new replies.