Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] Customize Byline for each post?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old Mar 20, 2010, 01:21 PM
vrinda
 
3 posts · Mar 2010
[SOLVED] Customize Byline for each post?

Hi,

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!

Last edited by vrinda; Mar 20, 2010 at 01:30 PM.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Byline working in single post pages, but not multiple? denise Post-Kicker, -Byline & -Footer 2 Mar 17, 2010 04:35 PM
How to customize 404 error page? wfzimmerman Atahualpa 3 Wordpress theme 16 Mar 7, 2010 08:11 AM
Customize Category Page bigliettaio Forum How-To 5 Jan 4, 2010 05:36 PM
[SOLVED] Remove byline or kicker when post is sticky? blueprairie Installing & running WordPress 6 Oct 24, 2009 12:00 PM
[SOLVED] Remove Byline in an individual post Per Lund Post-Kicker, -Byline & -Footer 7 Aug 31, 2009 06:22 AM


All times are GMT -6. The time now is 01:13 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.