Tagged: co-authors plus
- This topic has 8 replies, 3 voices, and was last updated 8 years, 6 months ago by Theme Horse Support Team.
-
AuthorPosts
-
May 18, 2016 at 11:52 pm #44947kumar.dhanasekharanParticipant
I have the latest version of clean retina and i have installed a plugin for showing multiple authors (co-authors) on a single post. However, the front end does not show the multiple authors. What file needs to be changed and what code needs to be inserted. Please help.!
There is a forum topic from 2013 that does not seem to apply to the latest version.
Thanks!!
KumarMay 19, 2016 at 7:09 am #44953Theme Horse Support TeamKeymasterHi Kumar,
We are not familiar to this co-author plugins. Where do you want to add your code? Can you make it more clear to us and also provide the screenshot too.
Each and every code is displayed from theme folder -> library -> structure -> content-extension.php. You need to make customization on this file.Thank you!
May 19, 2016 at 1:18 pm #44970kumar.dhanasekharanParticipantThanks! My goal is to be able to assign multiple authors to a single post. If I can do this directly in Clean Retina, let me know how to do it. I found a plug-in that can assign multiple authors to a single post called “Co-Authors Plus”. Here’s what I am trying to do as per the instructions from Co-Authors Plus. https://vip.wordpress.com/documentation/incorporate-co-authors-plus-template-tags-into-your-theme/
Some excerpt from the Co-Authors Plus page:
To integrate Co-Authors Plus, you’ll want to replace existing author template tags in your theme with a simple conditional that uses the Co-Authors Plus template tags if Co-Authors Plus is available. The conditional prevents your site from breaking (e.g. white screen of death) if Co-Authors Plus isn’t activated.For example, here’s how you would update the_author_posts_link() to instead use coauthors_posts_links():
?
1
2
3
4
5
if ( function_exists( ‘coauthors_posts_links’ ) ) {
coauthors_posts_links();
} else {
the_author_posts_link();
}
However, the example above is a relatively simplistic way of presenting bylines. There’s a good chance your theme will need an adaptation of it.May 20, 2016 at 6:47 am #44991Theme Horse Support TeamKeymasterHi kumar.dhanasekharan,
Thanks for your suggestion. Better make child theme to customize the code so that while updating to new version your customization code will not be lost. Also if we find any solution to help you then we will let you know.
Thank you!
May 20, 2016 at 1:09 pm #45010kumar.dhanasekharanParticipantOk, but I have not been able to find the existing author template tags in your theme… Which file under which directory carries this information on how you display author information…
May 20, 2016 at 1:11 pm #45011kumar.dhanasekharanParticipantI am not a programmer – I am trying to understand where the author template tags are and how to replace them. Any guidance is appreciated. I can do a child theme – which is OK.
May 23, 2016 at 9:27 am #45056Theme Horse Support TeamKeymasterHi
We don’t have any author template tag.Everything is WordPress default. If no template tag is there then it will display from core where we don’t make any code customization. So we are sorry for this feature. You need to hire a developer.
Thank you!
May 25, 2016 at 9:34 am #45118BertrandParticipantReplace in the content-extensions.php
<?php authors_posts_link(); ?>
to<?php coauthors_posts_links(); ?>
. In my theme it was 5 times.
This should work, when You don’t want to make a child theme. This is hard coded and will be lost after the next theme update and You have to change it again.
Be sure that You have enabled the plugin!May 26, 2016 at 10:03 am #45129Theme Horse Support TeamKeymasterThanks for helping us Bertrand
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.