Community Forums › Forums › Archived Forums › General Discussion › Genesis Featured Posts not showing Coauthors
Tagged: coauthors, featured posts, widget
- This topic has 9 replies, 3 voices, and was last updated 8 years, 3 months ago by dorel.
-
AuthorPosts
-
December 6, 2015 at 11:17 pm #172906modowebMember
I'm using Genesis Featured Posts with the Show Posts Info checked and the shortcode [post_authors_post_link] . I also have the plugins Co-Authors Plus and Genesis Co-Authors Plus. The shortcode is displaying a single author even when there are multiple authors but *only* for the widget. For the rest of the site, shortcode works fine. Any idea how I can get the widget to display multiple authors?
http://oaklandvoices.us/December 6, 2015 at 11:38 pm #172908SummerMemberThe default Genesis Featured Posts isn't that smart, for use with Co-Authors.
I use the Genesis Sandbox Featured Content Widget to get multiple authors displayed in widget use.
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkDecember 8, 2015 at 9:22 pm #173253modowebMemberHi Summer,
I tried this, but got the same results. Did you do anything special to get the multiple authors to show with the Sandbox widget?
Thanks,
LauraDecember 8, 2015 at 11:52 pm #173259SummerMemberDid you add the extra code to your functions.php as well?
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkDecember 9, 2015 at 4:02 pm #173376modowebMemberI did, which is why it is working on the individual posts but not through the Featured Posts widget. Here's a post where it is working, but when you go to the home page you can't see the multiple authors: http://oaklandvoices.us/gun-tracing-pilot-program-approved-public-safety-committee/
December 9, 2015 at 10:47 pm #173393SummerMemberAnd you also switched to the Genesis Sandbox Featured Content widget? Amd you updated the shortcode in the widget to use the [post_authors_post_link] too?
I know that handles multiple authors, because I'm using it and it displays multiple authors (I added myself to one movie review just to test, and it worked, showing both names).
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkDecember 10, 2015 at 9:52 am #173442modowebMemberHi Summer,
Yes, I did those steps. I wonder why it works for you and not for me? Here's the code I have in function.php. It's the code from Bill Erickson. Is it the same as yours?
Thanks!
-----//
/**
* Post Authors Post Link Shortcode
*
* @author Bill Erickson
* @link http://www.billerickson.net/wordpress-post-multiple-authors/
*
* @param array $atts
* @return string $authors
*/
function be_post_authors_post_link_shortcode( $atts ) {$atts = shortcode_atts( array(
'between' => null,
'between_last' => null,
'before' => null,
'after' => null
), $atts );$authors = function_exists( 'coauthors_posts_links' ) ? coauthors_posts_links( $atts['between'], $atts['between_last'], $atts['before'], $atts['after'], false ) : $atts['before'] . get_author_posts_url() . $atts['after'];
return $authors;
}
add_shortcode( 'post_authors_post_link', 'be_post_authors_post_link_shortcode' );/**
* List Authors in Genesis Post Info
*
* @author Bill Erickson
* @link http://www.billerickson.net/wordpress-post-multiple-authors/
*
* @param string $info
* @return string $info
*/
function be_post_info( $info ) {
$info = '[post_authors_post_link]';
return $info;
}
//add_filter( 'genesis_post_info', 'be_post_info' );December 10, 2015 at 11:47 am #173466SummerMemberYep, using the same functions.
What version of Genesis are you using, and what versions of Co-Authors Plus and Genesis Co-Authors Plus are you using?
I've got Genesis 2.2.3, Co-Authors Plus 3.1.1, Genesis Co-Authors Plus 1.3 (with some custom code added for handling guest author profiles that aren't WP users), and Genesis Sandbox Featured Content Widget 1.1.8. I even have it running on a site still using Genesis 2.1.3, behaving normally.
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkJanuary 4, 2016 at 12:49 pm #175570modowebMemberHi Summer,
I don't know if you're still following this. I just got back from a long vacation to find that this is mysteriously working now. I had all the same versions of the plugins & Genesis. So... weird! Thanks again for your help.Laura
January 5, 2016 at 10:03 am #175642dorelMember -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.