Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add pin icon for top five forum


  • saleemds
    Participant

    @saleemds

    Hi All,

    I want to add Pin icon for top or popular five topics? Could anyone can help me out this issue?

    I have found the solution top five forum below is code:

    function rk_top_five_view() {
    bbp_register_view( 'top-five', __( '5 Most Popular Topics' ), array( 
        'meta_key' => '_bbp_reply_count',
        'posts_per_page' => '5' ,
        ' max_num_pages' => '1', 
        'orderby' => 'meta_value_num' ),
    false );
    }
    
    add_action( 'bbp_register_views', 'rk_top_five_view' );

    But how I can apply for add pin icon?

    Please help me

Viewing 1 replies (of 1 total)

  • Robin W
    Moderator

    @robin-w

    sorry, I can see no easy way to do this.

    In essence the code above just calls some standard bbpress functions, and these won’t recognise that they have been called by the code, so adding content to then is not possible as far as I can see.

    To do this would need some bespoke code

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