Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

get_avatar and the post footer

Old Oct 12, 2012, 01:34 PM
1 posts · Jun 2010

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.
Old Oct 12, 2012, 02:05 PM
juggledad's Avatar
23,757 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


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 12:58 PM
[SOLVED] Post Footer - Homepage and Multi Post Pages - Version 3.7.3 made some weird Gail_NK Forum How-To 6 Feb 14, 2012 07:34 PM
[SOLVED] Removing Post Footer on Homepage except 1st post Larry Post-Kicker, -Byline & -Footer 12 Oct 28, 2009 01: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 02:12 PM
Post Footer is not right bseppa Post-Kicker, -Byline & -Footer 0 Dec 12, 2008 10:03 PM

All times are GMT -6. The time now is 04:09 AM.

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