[Plugin: Co-Authors Plus] Post Links as an array
-
I am able to get most of the meta information as an array.
But how do I get the author_posts_link of the co-authors in an array.I am changing the meta information of the post by adding the co-authors information through a hook. In my implementation, I need to return the author_postlink rather than echo it as coauthors_posts_links() does.
I tried looking for it the get_the_coauthor_meta() fields but I could not find a way the author postlink can be obtained through get_the_coauthor_meta
One way would be to do a ob_start and ob_get_clean to get the string and again split it on the commas.
But I think it is an overkill and plain wrong to utilise the output buffer for this.
How can I achieve obtaining the postlinks in array in a clean manner?
- The topic ‘[Plugin: Co-Authors Plus] Post Links as an array’ is closed to new replies.