Why is this duplicating ? – UserPro Forums https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/feed/ Sat, 18 May 2024 22:08:55 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31567 <![CDATA[Why is this duplicating ?]]> https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31567 Wed, 09 Apr 2014 19:02:38 +0000 Robin Tabari <?php
global $userpro;
?>permalink( get_the_author_meta(‘ID’) ); ?>”><?php echo the_author();?>
</div>

When I try and delete one section. It deletes it all 🙁

]]>
https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31574 <![CDATA[Reply To: Why is this duplicating ?]]> https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31574 Wed, 09 Apr 2014 20:08:16 +0000 Robin Tabari Ahmed can you show me how I can add a user avatar and link to profile with this code;

<?php
global $userpro; if ( function_exists( ‘coauthors_posts_links’ ) ) {
coauthors_posts_links();
} else {
the_author_posts_link();
}
?>

]]>
https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31581 <![CDATA[Reply To: Why is this duplicating ?]]> https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31581 Wed, 09 Apr 2014 20:29:56 +0000 admin echo the_author(); will double post author link because the author function already has echo in it. double echo! 🙂

You can show user avatar only if you knew author ID, e.g.

get_avatar(get_the_author_meta(‘ID’), $size=50);

]]>
https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31595 <![CDATA[Reply To: Why is this duplicating ?]]> https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31595 Wed, 09 Apr 2014 20:41:59 +0000 Robin Tabari I’ve got everything working. It’s just the hyperlinks aren’t

<?php foreach( get_coauthors() as $coauthor ) : ?>
<div id=”authorinfo” class=”userpro-profile-img-after”>
userpro_author_url; ?>”><?php echo get_avatar( $coauthor->user_email, ’80’ ); ?>
<p class=”marB10″><?php _e(‘By’, ‘contempo’); ?>: permalink($user_id); ?>”><?php echo $coauthor->display_name; ?></p>
<div class=”clear”></div>
</div>
<?php endforeach; ?>
</div>

http://www.gngmagazine.co.uk/black-t/

]]>
https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31597 <![CDATA[Reply To: Why is this duplicating ?]]> https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31597 Wed, 09 Apr 2014 20:43:36 +0000 admin Wow, what do you want to have as a hyper link? The code looks broken to me, I can’t see what are you trying to do

]]>
https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31599 <![CDATA[Reply To: Why is this duplicating ?]]> https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31599 Wed, 09 Apr 2014 20:45:22 +0000 Robin Tabari I’m trying to hyperlink to user profile pages instead of author pages ; however when I added the link , it just goes to /profile instead of profile/username

]]>
https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31600 <![CDATA[Reply To: Why is this duplicating ?]]> https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31600 Wed, 09 Apr 2014 20:46:06 +0000 Robin Tabari <?php foreach( get_coauthors() as $coauthor ) : ?>

<div id=”authorinfo” class=”userpro-profile-img-after”
?php echo $coauthor->userpro_author_url; ?>”><?php echo get_avatar( $coauthor->user_email, ’80’ ); ?>
<h5 class=”marB10″><?php _e(‘By’, ‘contempo’); ?>: =”<?php echo $userpro->permalink($user_id); ?>”><?php echo $coauthor->display_name; ?>
<div class=”clear”></div>
</div>
<?php endforeach; ?>
</div>

I’ve taken out the href hyperlinks.

]]>
https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31609 <![CDATA[Reply To: Why is this duplicating ?]]> https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31609 Wed, 09 Apr 2014 20:59:42 +0000 Robin Tabari I’m trying to do this ;

By Author ( link to userpro profile )

I’m using a coauthor plugin to display more than one author though.

]]>
https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31706 <![CDATA[Reply To: Why is this duplicating ?]]> https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31706 Thu, 10 Apr 2014 11:36:53 +0000 admin Try $userpro->permalink( $coauthor->ID ); to show profile link for coauthor? 🙂

]]>
https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31944 <![CDATA[Reply To: Why is this duplicating ?]]> https://forum.userproplugin.com/forums/topic/why-is-this-duplicating/#post-31944 Sat, 12 Apr 2014 10:59:04 +0000 Robin Tabari It worked! Thank you!

]]>