BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › help with images in posts
- This topic has 6 replies, 2 contibutors, and was last updated 9 years, 10 months ago by Alyssa.
Question
January 8, 2015 at 5:03 pm #34510@davesharpeI’m using Gravity Forms to create posts on a BuddyBoss theme. the goal is to allow members to post images in a blog. I created a simple form for this, but images will only show as “featured images”, not in the body of the blog itself. The featured image is fine for a grid display that essentially creates a gallery, but I need the image to also show in the post body. Can you help me with this?
Answers
January 8, 2015 at 6:31 pm #34517@alyssa-buddyboss
AlyssaParticipant@davesharpe Welcome to the BuddyBoss community! See previous post here: https://www.buddyboss.com/support-forums/topic/featured-images-missing/#post-26117
January 8, 2015 at 8:16 pm #34526@davesharpeHi TJ, and thanks for the help! I was able to follow the instructions (not without a lot of trepidation – I’m not a developer and barely able to figure out how to copy the content.php file instruction…) I’m now seeing the image in my posts, but it seems to be only a thumbnail. On the prior support thread, you mentioned to change the word “medium” to “full” in the code, but it seems to already say “full”. What am I missing? Here’s a screenshot of the section of the content.php file as it stands now.
January 8, 2015 at 8:22 pm #34528@davesharpeHere’s a second screenshot of a post with photo attached. The photo is a standard 3:2 format – a vertical oriented image. As shown in the post itself, the entire image is distorted to fit into a small square space, whereas the post grid image ( test gallery) shows just a section of the image as a thumbnail (which is ok in that setting).
I’d like the image in the post to be much larger, while still fitting on the screen.
Thanks again for your help with this.
January 9, 2015 at 12:59 pm #34541@alyssa-buddyboss
AlyssaParticipant@davesharpe try this code instead:
<?php if ( has_post_thumbnail() ) : the_post_thumbnail('full'); ?> <?php endif; ?>
Ends up the previous code is for the thumbnail only, had a link to the full size image and the class affected it so it was all sorts of messed up.
January 9, 2015 at 1:54 pm #34543@davesharpethat worked! Thanks for the help!
January 9, 2015 at 5:40 pm #34560@alyssa-buddyboss
AlyssaParticipantGlad you were able to solve this easily without programming experience 🙂
- The question ‘help with images in posts’ is closed to new replies.