Co-Authors Plus
functions vs. template tags (2 posts)

  1. Hugh
    Posted 3 years ago #

    I am trying to understand some of the directions here: http://vip.wordpress.com/documentation/incorporate-co-authors-plus-template-tags-into-your-theme/

    If I understand things correctly the following should be true (can someone verify this for me please?):

    1. If I am running the plugin then I do not need to copy the functions mentioned in the link above to my child theme's functions.php file.
    2. coauthors_posts_links(); is an example of a "template tag".
    3. I do need to add the code bit below to my theme in the appropriate places and choose the template tag I desire based on the behavior I want on the front end:
      if ( function_exists( 'coauthors_posts_links' ) ) {
      } else {


  2. Hugh
    Posted 3 years ago #

    I got it to work, so I suppose everything above is true.

    However, I have another question related to this plugin. So I have a situation where I want one icon to show if there are two (co)authors, I have another icon I want to show if it is author (A) and a third icon I want to show if it is author (B). How do I arrange the if else statement? Do I do it on some sort of Author ID or based on the output of the Authors' names? Do I have to count the returned elements?

    I think the logic would be like the following, (but I am not sure of that either)

    if more than one author, then image #1 elseif
    if author(A), then image#2 else image#3,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Co-Authors Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.