BuddyBoss Home – Web Support Forums Themes BuddyBoss theme help with images in posts

Viewing 7 posts - 1 through 7 (of 7 total)
  • Question

    #34510
    @davesharpe

    I’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

    #34517

    Alyssa
    Participant
    @alyssa-buddyboss
    #34526
    @davesharpe

    Hi 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.

    #34528
    @davesharpe

    Here’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.

    #34541

    Alyssa
    Participant
    @alyssa-buddyboss

    @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.

    #34543
    @davesharpe

    that worked! Thanks for the help!

    #34560

    Alyssa
    Participant
    @alyssa-buddyboss

    Glad you were able to solve this easily without programming experience 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The question ‘help with images in posts’ is closed to new replies.