Skip to:
Content
Pages
Categories
Search
Top
Bottom

Set featured image for bbpress forum posts


  • yoshimitsu1234
    Participant

    @yoshimitsu1234

    Normal WordPress posts allow to set an image as featured image so that when i share that post on social networks that featured image will show as post image.
    How can i do similar thing with bbpress topics? There is no option to set featured image in new topic.
    I want featured image only in post meta and not in post itself, so that it will appear only when a post is shared on Facebook etc.

Viewing 5 replies - 1 through 5 (of 5 total)

  • Stephen Edgar
    Moderator

    @netweb

    Do it the same way you would for WordPress and use the bbPress custom post types, forum, topic, and reply.


    yoshimitsu1234
    Participant

    @yoshimitsu1234

    I don’t get you. I do not get option to set a featured image in new forum post section at all.
    Please explain in detail.


    yoshimitsu1234
    Participant

    @yoshimitsu1234

    Can anyone answer my question in detail?
    How do i add featured image to a bbpress forum post from wordpress post editor page?


    Jessy Marco
    Participant

    @jessy-marco

    Into your function.php paste this code, you will allow to Custom Post Type forum – bbPress have featured images in admin.

    add_theme_support( 'post-thumbnails', array( 'forum' ) );
    add_post_type_support('forum', 'thumbnail');

    yoshimitsu1234
    Participant

    @yoshimitsu1234

    That worked like a charm. Thanks a lot.
    Earlier i was adding it to end of functions.php which was not working but adding it before ?> did the trick.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.