Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to edit the topics that are shown in the bbp-single-view popular

  • @vincenzon617

    Participant

    I am thinking about editing what the shortcode [bbp-single-view id=’popular’] displays. What I would like to change it to is to display the most popular topics per day. For example, a topic that has 10 replies one day and so classed as ‘popular’ has 1 the next day and so it is no longer on the list.

    I have made a function that returns the number of replies in the current day by using the topicID but I am unsure where to go from here, to link it to this feature.

    Any help is greatly appreciated!

Viewing 1 replies (of 1 total)
  • @vincenzon617

    Participant

    I have now created the function that sorts each topic in my forum in order of the number of replies they have for the current day and these are stored in a multidimensional array.

    From here, how do I put them in the loop in order to display them to the frontend?

    The array has two indexes, [0] => number of daily replies, [1] => topicID, if that is of any help!

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