Skip to:
Content
Pages
Categories
Search
Top
Bottom

add a "Featured Image" to a forum

  • @simtic

    Member

    Hello bbpress gurus,

    First, thanks a lot for this wonderful plugin :)

    Now please forgive my French looking English…

    I’m using bbpress on a site where I’d like to show up on some template page a list of recent posts in the forum. get_posts is my friend and that’s ok.

    But I’d also like to show a nice picture of the categories in which those recent posts where posted. Well, “regular” posts on WP now can have a “Featured Image”. And I looked to add this to my forums as well.

    And I think I made it

    But not sure ^^

    Anyway

    I added this line in bbp-admin/bbp-forums.php :

    add_meta_box(‘postimagediv’, __(‘Featured Image’), ‘post_thumbnail_meta_box’, $this->post_type, ‘side’, ‘low’);

    in function attributes_metabox() (~ l.190)

    And it seems to be working.

    But as far as I can tell, there’s maybe 50% luck this code not doing some very bad things in the same time ^^

    PLease advice, if there is a better way to achieve this…

Viewing 7 replies - 26 through 32 (of 32 total)
  • @pazzaglia1

    Participant

    OK, started my own topic as I was, obviously, not clear enough for my question. I thought it would have been a simple tweak (for someone who know what they’re doing) of this code but, apparently not.

    How to set single default thumbnail for all “topic” content types?

    Ciao,

    L

    @munkitkat

    Participant

    I have tested your code. Well I can select in the admin panel “edit topic” or “new topic” “featured image”, I select the picture…when I turn back to the topic, no picture. It doesn’t remain selected.
    I use the latest WordPress: 4.30.

    @jon-fergus

    Participant

    Ok, so I’ve added the ability to include a featured image for forums and topics. BUT…. the featured image for forums isn’t being recognized as the og:image when I run it through the facebook debugger. Any ideas why that would be?

    Here’s the forum I’m using as the test: http://nexus.universaltheosophy.com/groups/art-of-living-study-group/forum/

    This is the image I set as the featured image: http://nexus.universaltheosophy.com/wp-content/uploads/nexus.jpg

    But facebook seems to be picking up the first image it finds within the forum.

    Also…. I’d like to add a featured image that works as the og:image for groups. Any idea how to do that?

    @netweb

    Keymaster

    @jon-fergus I think the reason could be that the forum is within a BuddyPress group

    Also BuddyPress now has “group avatars”, will that do what you’re after?

    @poisonkatrin

    Participant

    Hello everyone @casiepa,
    I have installed the plugin you suggested but I don’t know to show the featured image, can you help me? thank you in advance

    @joshgrisdale

    Participant

    Thank you @sxalexander!

    @bahceankara

    Participant

    this is working for me, thx.

Viewing 7 replies - 26 through 32 (of 32 total)
  • You must be logged in to reply to this topic.
Skip to toolbar