Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to show feature image of Topic on ” Forum list ” Widget


  • ashu2106
    Participant

    @ashu2106

    i m trying to get the thumbnail of topic to show on Widget “Forum list”
    what i m trying to achieve are

    1. trying to get the feature image funtionality on front end so user can have the option to upload image about the Topic
    2. get the feature image on Widget “Forum list” Default widget of BbPress plugin

    i m not developer, as i have feature image in admin using some code found here.
    Please provide some suggestions

    looking for quick reply, as i have to use this feature in website.
    thanks

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

  • Robkk
    Moderator

    @robkk

    trying to get the feature image funtionality on front end so user can have the option to upload image about the Topic

    This sounds like custom development , you might need a developer to do this type of thing.

    get the feature image on Widget “Forum list” Default widget of BbPress plugin

    You would need to create a new “Forums list” widget mostly based off the original bbPress default widget.

    Then use get_the_post_thumbnail to render your featured images

    https://codex.wordpress.org/Function_Reference/get_the_post_thumbnail
    https://codex.wordpress.org/Post_Thumbnails


    ashu2106
    Participant

    @ashu2106

    Hello @Robk
    thanks for you Answers

    As you told thumbnail image can be show as post thumbnail is showing
    i have to create a new widget for own customization work and where i have to place that file

    within theme bbpress folder or i have to place my own customized file into bbpress plugin folder
    As i know customization file places under the theme bbpress folder

    Advice will be grate
    i will look into this and get back to you

    thanks


    Robkk
    Moderator

    @robkk

    i have to create a new widget for own customization work and where i have to place that file

    If you know what you are doing , you can place it in a child themes functions.php , or just place it in a new file like says widgets.php to better organize your content then include the file using something like this in your functions.php

    require get_template_directory() . '/inc/widgets.php';

    You can also place the code in a custom plugin too.

    You shouldnt place any customizations in the bbPress plugins folder, because you will lose the changes next update.

    And You dont need to place the customized widget funcitons in the bbpress folder in your child theme either.


    ashu2106
    Participant

    @ashu2106

    HEllo @Robkk
    i resolve this like this

    i create a new function that use for custom post
    and then retrieve data from post type : Topic

    and show data as showing custom post on front end, it was pretty easy

    thanks for your idea
    thanks

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