Have anyone gotten the co-authors plus plugin to work in the new update?
I have tried to insert this in loop-single.php, but its not working.
<?php
//show the author under title
if (td_util::get_option('tds_show_author_under_title') == 'show') {
//echo $td_mod_single->get_author();
$coauths = get_coauthors();
if (count($coauths) > 1) {
echo "von ";
foreach($coauths as $key => $coauth) {
echo 'user_nicename.'">'.$coauth->display_name.'';
// add "and"
if ($key != count($coauths)) {
echo ' und ';
$coauths = substr($coauthsHTML, 0, -4);
}
}
} else {
echo $td_mod_single->get_author();
};
}
?>
Hi,
Please try this code in post template that you use – http://pastebin.com/chADk3Xw just replace the author code – http://screencast.com/t/uxoYjfCN4 and it should work – http://screencast.com/t/GLjmMTSR
Thanks!
Hi,
I’m not sure if you can manage to show the co-authors on modules, you will need custom work and implement the coauthor plugin to display name of authors also on modules/blocks. You can try to add it also on modules but you need custom modification to the above code and I’m not sure if it will work – http://screencast.com/t/u5rSK2sD5CG
Thanks!
Thanks for the help with this.
I had to edit so it would display differently depending on author count, this works for up to 4 in Newspaper 6:
http://pastebin.com/AKBQK0UY
Thats great. 🙂
All we need now is getting it implemented in the modules. Did you have any luck with that?
I have used this for getting the author boxes for each author in place:
http://pastebin.com/hsReuksB
Did you have any luck getting the author boxes to display for each co-author?
@soundstrat , I did not. I was able to get authors listed with link to author page with appropriate punctuation depending on number displayed (x and y; x, y, and z) https://pastebin.com/AKBQK0UY
Hello,
I’m very new to coding and am trying to get the co-authors plus plugin working on my Newspaper 7.7 WP theme. To clarify the information from above, if I input the Custom CSS that @kpwebteam uploaded – https://pastebin.com/AKBQK0UY – into the section on the WP site, Newspaper -> Newspaper Theme -> Custom Code -> Custom CSS, will that fix the problem and allow multiple authors to be listed in posts?
Thankyou!
Hello,
Sorry but this has not been tested in newspaper 7 nor NP 8 as the code has been changed since. Sorry but the co-author plugin is not among the tested and recommended plugins to use with our theme. It will require customization to work properly.
Thanks.
Hi Bogdan B.,
Thanks for your response. Are there plans for future upgrades to implement a function that allows for multiple authors to appear in article bylines? There seems to be quite a lot of demand for it in the support forums and there are no plugins that seem to be able fix the problem.
Many thanks,
John.
Still works just fine on my site: https://pacifictribune.com/2017/08/24/texas-house-map-must-redrawn-federal-court-says/