Support » Plugin: Co-Authors Plus » [Plugin: Co-Authors Plus] Showing co-authors without links

  • 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() {
            $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?


Viewing 1 replies (of 1 total)
  • Plugin Author Mohammad Jangda


    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Co-Authors Plus] Showing co-authors without links’ is closed to new replies.