[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' ); ?> Thanks! Tom |
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' );} ?> |
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? |
where are you putting in in the looP?
Export your Ataualpa settings and attach to a reply |
1 Attachment(s)
Here you go...
|
I don't see that code in the loop? where is it?
|
1 Attachment(s)
It's in the center column, "tje Loop" near the top.
I attached a screen cap |
are you sure you didn't type a parentheses ')' instead of squiggly bracket '}'?
send me the export with the if statement in it. |
1 Attachment(s)
ok - thanks for your time btw!
|
my mistake, i left out the closing ')' in the conditional, so instead of
HTML Code:
<?php if (!is_page() {echo get_avatar( get_the_author_email(), '32' );} ?> HTML Code:
<?php if (!is_page()) {echo get_avatar( get_the_author_email(), '32' );} ?> Funny thing, I was just talking to Lmilesw this morning and said keeping track of your open/close parentheses is a place you always trip over. |
Yeah!!!! You made my day! Thanks JD! Time for another donation!
|
All times are GMT -6. The time now is 06:13 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.