Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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?


  #1  
Old Mar 20, 2010, 01:21 PM
vrinda
 
3 posts · Mar 2010
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.
  #2  
Old Mar 21, 2010, 06:36 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Is this custom text coming from the post? if so, why not use the %meta% option in teh byline.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Mar 21, 2010 at 10:57 AM.
  #3  
Old Mar 21, 2010, 08:26 AM
vrinda
 
3 posts · Mar 2010
It worked! Thank you so much!

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to customize 404 error page? wfzimmerman Atahualpa 3 Wordpress theme 21 Oct 2, 2016 07:50 PM
[SOLVED] Byline working in single post pages, but not multiple? denise Post-Kicker, -Byline & -Footer 2 Mar 17, 2010 04:35 PM
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 11:10 AM.


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