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 »

get_avatar and the post footer


  #1  
Old Oct 12, 2012, 12:34 PM
KarlHvM
 
1 posts · Jun 2010
Exclamation get_avatar and the post footer

Hello,

I just upgraded to Atahualpa 3.7.9, and avatars are no longer displayed in my post footer. I was using 3.5.1 for a long time and the following code in the single post footer worked just fine to display it:

<?php echo get_avatar( %author-id%, $size = '100', $default = 'http://www.biofortified.org/wp-content/themes/atahualpa/images/no-gravatar.gif'); ?>

As you can see on this page, http://www.biofortified.org/2012/10/...h-kevin-folta/, you cannot see any avatar next to the author description. I tried testing various aspects of this php code, and there's no problem with calling up the author ID with %author-id%. I inserted my user id number (1) into the code and still nothing displayed, which means that the php code is not doing anything. I tried searching the BFA forum for avatar fixes in the atahualpa settings, and I also searched for discussions about php code in the settings/footer as well. Any help would be appreciated. I could always hard-code the author avatar into the atahualpa files, but I would like to avoid this to make upgrading to the next version easier.
  #2  
Old Oct 12, 2012, 01:05 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you can't put php in the theme options any more due to a WordPress restriction
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Adding space/padding after the post/page footer of each post Vanessa_S Center area post/pages 2 Jun 21, 2012 11:58 AM
[SOLVED] Post Footer - Homepage and Multi Post Pages - Version 3.7.3 made some weird Gail_NK Forum How-To 6 Feb 14, 2012 06:34 PM
[SOLVED] Removing Post Footer on Homepage except 1st post Larry Post-Kicker, -Byline & -Footer 12 Oct 28, 2009 12:29 PM
Post / Page Info Items - Button crashes comp, how do I add to post-footer? Image help everygirlssecret Post-Kicker, -Byline & -Footer 1 Jan 5, 2009 01:12 PM
Post Footer is not right bseppa Post-Kicker, -Byline & -Footer 0 Dec 12, 2008 09:03 PM


All times are GMT -6. The time now is 05:46 PM.


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