Community Forums › Forums › Archived Forums › General Discussion › Co-authors plus
Tagged: co-authors plus, Eleven40, genesis integration
- This topic has 7 replies, 5 voices, and was last updated 10 years, 6 months ago by
Mealtog.
-
AuthorPosts
-
January 16, 2013 at 7:41 am #12267
iaditya999
MemberI installed a plugin called co-authors plus
http://wordpress.org/extend/plugins/co-authors-plus/
But it was unable to change entire author section,after post author and by --- after the post title...
So I added it's code to functions.php but it failed coz wordpress is already using author mark related to genesis.....
Will anyone please tell me the right way to make it work ????????????
January 16, 2013 at 8:55 am #12283David Decker
MemberThere is a new community plugin called "Genesis Co-Authors Plus": http://wordpress.org/extend/plugins/genesis-co-authors-plus/
--> please use that along with the original "Co-Authors Plus" pluginBefore, remove your custom code regarding co-authors plus from your functions.php
I suggest to put further questions to the support forum of the developer of that Genesis Add-On plugin, here: http://wordpress.org/support/plugin/genesis-co-authors-plus
January 16, 2013 at 10:18 am #12319iaditya999
MemberIt worked with the after post author box but not for the by section from the post info !!!!
January 16, 2013 at 12:22 pm #12355David Decker
MemberOk, I just tested a piece of code for you, on my install it works great:
---> goes into functions.php --- best at the bottom, don't include the beginning line "< ?php" !
It's also safe if you deactivate the Co-Authors plugin! To modify your byline output you have to modify the parts on the line with "$post_info = ..." etc. be careful with the syntax though. A backup of your functions.php goes a long way 🙂
Hope that helps, Dave 🙂
January 18, 2013 at 10:23 am #12871iaditya999
MemberMay 20, 2013 at 3:24 pm #41893electricbrick
Participant@David Any idea on how one can control the output of a Genesis author archive using Co-Authors Plus and Genesis Co-Authors Plus?
January 14, 2014 at 7:28 am #85133hich
MemberIt does not work well for me, it add an extra line with the two authors on top and I will need to hide the author box for that particular box.
August 25, 2014 at 12:19 am #120860Mealtog
MemberLooks like maybe a later Gen release made the if else statement not work. I also see 2 lines of meta info. ie. both if and else displays. Does anyone know how to make this code work? It's been a struggle to get the latest Genesis to work with Co-Author Plus.
add_filter( 'genesis_post_info', 'ddw_coauthors_post_info_filter' );
/**
* Customize the post info function for the use with Co-Authors Plus plugin
*
* @author David Decker - DECKERWEB
* @link http://twitter.com/deckerweb
*/
function ddw_coauthors_post_info_filter( $post_info ) {/** Check for active "Co-Authors Plus" plugin */
if ( function_exists( 'coauthors_posts_links' ) ) {$author_post_link = coauthors_posts_links();
} else {
$author_post_link = '[post_author_posts_link]';
} // end-if plugin function check
if ( ! is_page() ) {
$post_info = '[post_date] by ' . $author_post_link . ' [post_comments] [post_edit]';
return $post_info;
} // modify the byline output
} // end of function
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.