WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Jamil Jonna
    Member
    Posted 3 years ago #

    Hello,

    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() {
            if(function_exists('coauthors_posts_links'))
            $str = coauthors_posts_links(', ', ' and ', ' by ' , '');
            $out = strip_tags ( $str );
            return $out;
        else
            the_author_posts_link();
    }

    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?

    Thanks.

  2. Mohammad Jangda
    Member
    Plugin Author

    Posted 3 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

About this Topic