Custom display multiple authors
-
When a post has one author, everything is perfect. Here’s the code I have in single.php of my theme:
<b>By <?php the_author_posts_link(); ?></b> <br><i><?php $value = get_cimyFieldValue(get_the_author_ID(), 'TITLE'); echo cimy_uef_sanitize_content($value); ?></i>And here’s an example: http://rhodycigar.com/2014/08/30/freshman-year-survival-guide/
But if the post has multiple authors, it only shows the first one. Ideally, if there were more than one, it would say “By person 1 & person 2” then would skip the Cimy field. I’m just not sure how to code that. Any suggestions?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Custom display multiple authors’ is closed to new replies.