Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   [SOLVED] How to display photo in post body with User Photo addon? (http://forum.bytesforall.com/showthread.php?t=12616)

Fredo Feb 3, 2011 04:32 PM

[SOLVED] How to display photo in post body with User Photo addon?
 
Hi:

I'm creating a blog with Atahualpa version 3.6.4. I installed the User Photo addon and added a photo for each user. I was able to get the photos to display in the byline for single post pages. I went to
Atahualpa Theme Options -> Edit Post/Page Info Items

and placed this code in the field for Byline: Single Post Pages
<?php userphoto_the_author_photo() ?> By %author%, %date('F j, Y')%

However, I would like to place the user photo in the post body so that the text flows around it. I can not find a way to do that.

Suggestions?

Thanks very much,

Fred

juggledad Feb 3, 2011 07:20 PM

If you want the photo as part of the post, then it has to be part of the post.

You could try adding it in ato->Style & edit CENTER COLUMN-> by changing this line

HTML Code:

<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
to
HTML Code:

<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix"><?php userphoto_the_author_photo() ?>','</div>'); ?>
I don't guarantee it will work, it could even crash your site, but it is worth a test.

Fredo Feb 4, 2011 07:57 AM

Hey, thanks for the suggestion! I tried it and although the site didn't crash, the image was not included in the post body. Not sure why.

At this time I have achieved a workaround by floating the image right. In that case, body text does wrap around the photo.

Again, thanks for the help.

Fred


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

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