co-authors in newspaper 6

Posted in: Newspaper
Post count: 16

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();
};
}
?>

Post count: 7909

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!

Post count: 16

Thanks.. It works. Can you give me a hint on how to get it working on blocks as well?

Post count: 7909

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!

Post count: 3

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

Post count: 16

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

Post count: 3

I didn’t, I disabled author listing on all the modules we’re using because we’re low on time/budget for the project.

I am going to try out your author box solution, though, thanks!

Post count: 30

Did you have any luck getting the author boxes to display for each co-author?

Post count: 3

@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

Post count: 2

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!

Post count: 22421

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.

Post count: 2

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.

Post count: 30
Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newspaper’ is closed to new topics and replies.