Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created November 12, 2012 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/4061836 to your computer and use it in GitHub Desktop.
Save billerickson/4061836 to your computer and use it in GitHub Desktop.
/**
* 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 before="by "]';
return $info;
}
add_filter( 'genesis_post_info', 'be_post_info' );
@GaryJones
Copy link

No need to assign value to $info first - just return '[post_auth....'

No var name needed on the @return tag. The format is @return type optional-description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment