Forum Replies Created
-
AuthorPosts
-
modowebMember
Hi 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
modowebMemberHi 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' );modowebMemberI 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/
modowebMemberHi 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,
LauramodowebMemberI see the code is not rendering correctly, I'm using & lt; script & gt; , for example (without the spaces).
-
AuthorPosts