Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add replies (or topic) count to menu


  • project_subdomain
    Participant

    @project_subdomain

    I’d like to display the count of all existing replies for one topic like
    “Topic name One (56)”
    where 56 is the amount of replies.

    Is bbp_forum_reply_count() correct for this?

    How could I get the count to a specific menu which had been created through the backend’s design->menu,
    when the menu ID is 2 and the menu item ID of Topic name One is 11 and of Topic name Two is 22?

    Many thanks for any help!

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

  • Robkk
    Moderator

    @robkk

    This is more suited for topics.

    bbp_topic_reply_count()

    Not entirely sure what you are going for to really help more.


    project_subdomain
    Participant

    @project_subdomain

    thanks @robkk. makes sense, think it’s not in the codex.
    I’ve got a navigation menu with links to specific topics (made with the backend’s customizer). Would like to add the correct count to each navigation menu link.

    Suppose that it would be easier to create a new custom navigation menu via functions as it’s not that easy to target the specific locations, right?

    But in case you have an idea how to target those customizer created links to add a count, this surely would help for many other things as well.


    Robkk
    Moderator

    @robkk

    It probably will be a lot easier using functions to set up the menu items.

    This might be considered custom development too.


    project_subdomain
    Participant

    @project_subdomain

    @robkk thanks for your estimation!

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