Showing Co-Authors on post page
Your error is that you’ve written an if inside the sprintf argument list. You can’t do that. Instead, you could use the ternary operator, which has syntax <condition> ? <result if true> : <result if false> e.g. $byline = sprintf( __(‘by %s’), function_exists(‘coauthors_posts_links’) ? (‘<span class=”author vcard”>’ . coauthors_posts_links( null, null, null, null, false ) … Read more