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 »

[SOLVED] Post Avatar


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

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Apr 18, 2011, 10:46 AM
Webmason's Avatar
Webmason
 
69 posts · Feb 2009
Minneapolis, MN USA
Help [SOLVED] Post Avatar

Hello,

I have added the following code inside the center column loop and it has the desired effect.
Code:
<?php echo get_avatar( get_the_author_email(), '32' ); ?>
But I just want this avatar to show up on posts, not pages. Right now it comes up on both. Can this be done?

Thanks!
Tom
  #2  
Old Apr 18, 2011, 12:22 PM
juggledad's Avatar
juggledad
 
21,976 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
you should try adding a test to see if you are on a 'page' page
HTML Code:
<?php if (!is_page() {echo get_avatar( get_the_author_email(), '32' );} ?>
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Apr 18, 2011, 12:27 PM
Webmason's Avatar
Webmason
 
69 posts · Feb 2009
Minneapolis, MN USA
I thought it would be something like that, but for some reason when I add that, the pages (inside the loop) just don't show anything.

Any thoughts?
  #4  
Old Apr 18, 2011, 12:29 PM
juggledad's Avatar
juggledad
 
21,976 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
where are you putting in in the looP?
Export your Ataualpa settings and attach to a reply
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #5  
Old Apr 18, 2011, 12:32 PM
Webmason's Avatar
Webmason
 
69 posts · Feb 2009
Minneapolis, MN USA
Here you go...
Attached Files
File Type: txt ata-iam4windcom-20110418.txt (18.9 KB, 321 views)
  #6  
Old Apr 18, 2011, 01:29 PM
juggledad's Avatar
juggledad
 
21,976 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
I don't see that code in the loop? where is it?
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

Tags
avatar, code, page, post

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help please with Styling Avatar Stevieboy Center area post/pages 9 Nov 22, 2010 03:29 PM
How to show User Avatar as part of post Byline?? fredless Plugins & Atahualpa 4 Nov 7, 2010 11:26 AM
How to remove border around avatar? A333 Sidebars & Widgets 4 Dec 3, 2009 09:06 AM
How to change the default Avatar whatsmytruth Comments, trackbacks & pings 5 May 14, 2009 07:39 PM
Avatar in Post using Avatar Plug-in DMO Atahualpa 3 Wordpress theme 1 Mar 23, 2009 09:43 PM


All times are GMT -6. The time now is 10:50 AM.


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