-
So how do I add my code?
if <?php foreach( get_coauthors() as $coauthor ) : ?>
<div id=”authorinfo” class=”columns alpha omega marT30 marB20″>
permalink( $coauthor->ID ); ?>”><?php echo get_avatar( $coauthor->user_email, ’80′ ); ?>
<h5 class=”marB10″>permalink( $coauthor->ID ); ?>”><?php echo $coauthor->display_name; ?></h5>
<div class=”clear”></div>
</div>
<?php endforeach; ?>???
should be :
<a href="<?php echo $userpro->permalink($coauthor->ID); ?>"><?php echo $coauthor->display_name; ?></a>
I’ve tried the code. It seemed to have worked on a single post, but when trying to add it to an excerpt. It comes up with display_name; ?>
Is this because it can’t find the hook?
This coding doesn’t seem to work 🙁
if ($single_author && !$remove_dates) {
$post_item .= ‘<?php foreach( get_coauthors() as $coauthor ) : ?>permalink( $coauthor->ID ); ?>”><?php echo $coauthor->display_name; ?><?php endforeach; ?>’;
} else if (!$remove_dates) {
$post_item .= ‘<?php foreach( get_coauthors() as $coauthor ) : ?>permalink( $coauthor->ID ); ?>”><?php echo $coauthor->display_name; ?><?php endforeach; ?>’;
} else if (!$single_author) {
$post_item .= ‘<?php foreach( get_coauthors() as $coauthor ) : ?>permalink( $coauthor->ID ); ?>”><?php echo $coauthor->display_name; ?><?php endforeach; ?>’;Your code is so wrong! It’s not even a correct php logic. It’s hard for me to provide fully working example to you too since I do not know what’re are you trying to achieve, this is not how if statement should be used
Robin, Please. And tell me what you want to do exactly,I do not understand the logic you want to apply to site
You must be logged in to reply to this topic.