WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] Show only Co-Authors, if there's one! (2 posts)

  1. holapolitica
    Member
    Posted 1 year ago #

    Hi,

    How I set it only to show only co-Authors, if there's one! I dont want it to show the Admin/User/Author... This is what I got right now!

    <?php
       if (function_exists('coauthors_posts_links')) {
    	  $coauthors = get_coauthors(); ?>
    	  <div class="post_author">
    	  <?php foreach( $coauthors as $coauthor ) : ?>
    	  <span><?php _e('Publicado por: ', 'holapolitica'); coauthors_posts_links(); ?></span>
    	  <?php echo $coauthor->description; ?>
    	  <?php endforeach; ?>
    	  </div>
    <?php } ?>

    And another thing, How I can making to only generate the 128px thumbnail.
    http://wordpress.org/extend/plugins/co-authors-plus/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    You'll need an if check:

    <?php
       if (function_exists('coauthors_posts_links')) {
    	  $coauthors = get_coauthors(); ?>
    	  <div class="post_author">
    	  <?php if ( count( $coauthors ) > 1 ) :
    foreach( $coauthors as $coauthor ) : ?>
    	  <span><?php _e('Publicado por: ', 'holapolitica'); coauthors_posts_links(); ?></span>
    	  <?php echo $coauthor->description; ?>
    	  <?php endforeach; endif; ?>
    	  </div>
    <?php } ?>

    And another thing, How I can making to only generate the 128px thumbnail.

    Sorry, that's outside the scope of the support we offer with this plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.