Viewing 1 replies (of 1 total)
  • Hi there,

    To show testimonial avatar on testimonial page, Please follow the below steps,

    1. Please go to your FTP client (e.g. Filezilla) => Your site’s folder => wp-content => themes => current-theme => single.php
    2. Open this file for edit, Add Below code in single.php file where you want to display avatar

    <?php if(get_post_type() == 'testimonial' ) {
    	global $post;
    	$_testimonial_avatar=get_post_meta($post->ID, '_testimonial_avatar', true);
    	if( $_testimonial_avatar != '' ) { ?>
    	       <span class="rt-avatar"><img src="<?php echo $_testimonial_avatar;?>" /></span>
    	<?php }
    	}
    ?>

    Or you can create separate template file (In wp-content => themes => current-theme => ) to show the each testimonial page. new file name whould be like single-testimonial.php. Please refer this link to create separate testimonial template https://codex.www.ads-software.com/Post_Type_Templates

    Best Regards,
    Sukhada,
    SliderVilla Support Team.

Viewing 1 replies (of 1 total)
  • The topic ‘How to display Testimonial Avatar in single testimonial view?’ is closed to new replies.