Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   get_avatar and the post footer (http://forum.bytesforall.com/showthread.php?t=18651)

KarlHvM Oct 12, 2012 12:34 PM

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.

juggledad Oct 12, 2012 01:05 PM

you can't put php in the theme options any more due to a WordPress restriction


All times are GMT -6. The time now is 08:15 AM.

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