WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] Author profiles don't show any "posts by this author." (4 posts)

  1. arcticcoconut
    Member
    Posted 3 years ago #

    Here's a co-authored post: http://thevoiceofwellington.com/?p=889
    Click either author, and it says "no posts by this author."
    In fact, ALL authors on my blog now have "no posts by this author."
    I deactivated the plugin, and the problem went away. I would like to keep using this plugin! but I need a repair for the authors' profiles pages to display posts by those authors.

    I read that the plugin does support "posts by" in author profiles, but it's not working for me. Perhaps that support didn't get integrated because I had made a change to author.php before installing this plugin? Is the necessary author.php code posted somewhere on the web where I can copy it and integrate it manually? Here is the code of my author template, author.php:

    <?php get_header(); ?>
    	<div id="container">
    		<?php get_sidebar(); ?>
    
    		<div id="content-container">
    			<div id="content">
    <!– This sets the $curauth variable –>
    <?php
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name);
    else :
    $curauth = get_userdata(intval($author));
    endif;
    ?>
    <!-- ================================================= Output -->
    <!-- -->
    <?php
    		echo "\n<div style='float:right;'>";
    		echo get_avatar( $curauth->user_email );
    		echo "\n</div>";
    
    		echo "\n<h2>".$curauth->display_name."</h2>";
    		echo "<p class=biotag >Registered ".$curauth->user_registered."</p>";
    
    		echo "\n<table class=bio>";
    
    		if($curauth->nickname!="") :
    			echo "\n<tr>";
    			echo "<td class=bioshade ><p class=biotag >Nickname</p></td>";
    			echo "<td class=bioentry ><p class=bioline>".$curauth->nickname."</p></td>";
    			echo "</tr>";
    		endif;
    		if($curauth->description!="") :
    			echo "\n<tr>";
    			echo "<td class=bioshade ><p class=biotag >About</p></td>";
    			echo "<td class=bioentry ><p class=bioline>".$curauth->description."</p></td>";
    			echo "</tr>";
    		endif;
    		if($curauth->affiliation!="") :
    			echo "\n<tr>";
    			echo "<td class=bioshade ><p class=biotag >Affiliation</p></td>";
    			echo "<td class=bioentry ><p class=bioline>".$curauth->affiliation."</p></td>";
    			echo "</tr>";
    		endif;
    		if($curauth->user_url!="") :
    			echo "\n<tr>";
    			echo "<td class=bioshade ><p class=biotag >Website</p></td>";
    			echo "<td class=bioentry ><p class=bioline>";
    			echo "<a target='_new' href='".$curauth->user_url."'>".$curauth->user_url."</a></p></td>";
    			echo "</tr>";
    		endif;
    		if($curauth->user_email!="") :
    			echo "\n<tr>";
    			echo "<td class=bioshade ><p class=biotag ><img src='http://thevoiceofwellington.com/zc.email.png'> Email</p></td>";
    			echo "<td class=bioentry ><p class=bioline>";
    			echo "<a href='mailto:".$curauth->user_email."'>".$curauth->user_email."</a></p></td>";
    			echo "</tr>";
    		endif;
    		if($curauth->jabber!="") :
    			echo "\n<tr>";
    			echo "<td class=bioshade ><p class=biotag ><img src='http://thevoiceofwellington.com/zc.googletalk.png'> GoogleTalk/Jabber</p></td>";
    			echo "<td class=bioentry ><p class=bioline>".$curauth->jabber."</p></td>";
    			echo "</tr>";
    		endif;
    		if($curauth->yim!="") :
    			echo "\n<tr>";
    			echo "<td class=bioshade ><p class=biotag ><img src='http://thevoiceofwellington.com/zc.yahoomessenger.png'> Yahoo! Messenger</p></td>";
    			echo "<td class=bioentry ><p class=bioline>".$curauth->yim."</p></td>";
    			echo "</tr>";
    		endif;
    		if($curauth->aim!="") :
    			echo "\n<tr>";
    			echo "<td class=bioshade ><p class=biotag ><img src='http://thevoiceofwellington.com/zc.aim.png'> AOL Instant Messenger</p></td>";
    			echo "<td class=bioentry ><p class=bioline>".$curauth->aim."</p></td>";
    			echo "</tr>";
    		endif;
    		echo "\n</table>";
    ?>
    <!-- -->
    <!-- ================================================= /end Output -->
    <p>Posts by <?php echo $curauth->nickname; ?>:</p>
    <!– The Loop –>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <p class='bullet'>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
    <b><?php the_title(); ?></b></a>, <?php the_time('d M Y'); ?>
    <?php endwhile; else: ?>
    <p><?php _e('No posts by this author.'); ?></p>
    <?php endif; ?>
    <!– End Loop –>
    </div>
    
    <?php get_footer(); ?>
  2. shomazta
    Member
    Posted 2 years ago #

    Have you found an answer for this question? I'm having a similar issue whereas, even though I have a co-author listed in the backend (admin area), on the site if you were to go to the co-authors /author/ listing, he doesn't have any of those co-author'ed posts

    http://srzfkn.biz/utw-c3-cube-x-cursed-x-curious-03-fansub-review/

    then check out the co-authors page

    http://srzfkn.biz/author/ahmahgahd/

    password: working

  3. shomazta
    Member
    Posted 2 years ago #

    actually if it's a co-author post it doesn't show in either or the authors' lists

    it's not under admin either
    http://srzfkn.biz/author/admin/

  4. arcticcoconut
    Member
    Posted 2 years ago #

    Sorry, the project I was using it on has been cancelled.
    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic