Thanks for the great theme!
I was hoping to customize the byline. Specifically, I would like to change the author with text added in a custom field (so that I don't have to create a new user for each author).
I found some code that works in another blog I have, but for some reason it is breaking Atahualpa when I post the code in functions.php. Does anyone have some code that changes the author in the byline? Or does anyone have any idea why the code below isn't working:
PHP Code:
add_filter( 'the_author', 'guest_author_name' );
add_filter( 'get_the_author_display_name', 'guest_author_name' );
function guest_author_name( $name ) {
global $post;
$author = get_post_meta( $post->ID, 'guest-author', true );
if ( $author )
$name = $author;
return $name;}
Thanks!