Co-Authors Plus
Showing co-authors without links (2 posts)

  1. Jamil Jonna
    Posted 4 years ago #


    I cannot, after many hours of trying, get my co-author names to appear without any html. I don't want any links at all. I need to figure out a way to add coathors to my meta tags. I've tried creating my own shortcode, and using strip_tags:

    function mr_coauthor_names_shortcode() {
            $str = coauthors_posts_links(', ', ' and ', ' by ' , '');
            $out = strip_tags ( $str );
            return $out;

    But it simply will not work. str_replace doesn't even work. Hopefully you can help.

    Just curious if you are going to update co-authors plus? Do you need funds?


  2. Mohammad Jangda
    Plugin Author

    Posted 4 years ago #

    The template tags echo the output so what you're doing won't work. You can use the get_coauthors() function or the CoAuthorsIterator to build your string. There's more info on the Other Notes page.

    I do have an update planned, just focused on other projects right now.

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