co-authors plus template tag problems
-
Hello,
I’ve installed the co-authors plus plug in but I’m having problems with the template tags.
Here’s my code for the author template:
<?php get_header(); ?>
<div id=”content”>
<div id=”author-profile”>
<?php
$curauth = (isset($_GET[‘author_name’])) ? get_user_by(‘slug’, $author_name) : get_userdata(intval($author));
?><?php userphoto($curauth, “” , “”, “”, get_template_directory_uri() . “/images/no-image.jpg”);?>
<div class=”author-profile-container”>
<div class=”author-profile-info”>
<span class=”author-profile-name”><?php echo $curauth->first_name .’ ‘ . $curauth->last_name; ?></span>
<p><?php echo $curauth->first_name . ‘ ‘ . $curauth->last_name . ‘ ‘ . $curauth->description . ‘ user_email . ‘”>’ . $curauth->user_email . ‘‘; ?></p>
</div>
<div class=”author-profile-social-media”>
twitter_address; ?>”>@<?php echo $curauth->social_media_nickname; ?>facebook_address; ?>”>/<?php echo $curauth->social_media_nickname; ?>
<div class=”clear”></div>
</div>
</div>
<div class=”clear”></div>
</div>
<div class=”section-title”>Recent Articles</div>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class=”author-recent-article”>
<?php if(has_post_thumbnail()) {
the_post_thumbnail(‘author-recent-article-thumbnail’);
} else {
?><img src=”blank.jpg” />
<?php } ?>
<div class=”author-recent-article-content”>
“><?php the_title(); ?>
<span class=”author-name”> by <?php the_author_posts_link(); ?></span>
<p><?php the_excerpt(); ?></p>
</div>
<div class=”clear”></div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>Any help anyone can provide would be so appreciated!
Thanks,
Robin
- The topic ‘co-authors plus template tag problems’ is closed to new replies.