Skip to:
Content
Pages
Categories
Search
Top
Bottom

Private Recent Topic Page


  • xmasons
    Participant

    @xmasons

    I’m trying to create a page that includes only recent topics which would only be available to a forum role of Participant and a visibility of Private.

    Creating a new page and using the short code [bbp-topic-index] doesn’t work, as the Private page visibility is based on WordPress user roles and not bbPress.

    Is there a way to create an additional forum template that lists recent topics? This would not replace the main forum list view, but would be an additional page.

Viewing 1 replies (of 1 total)

  • xmasons
    Participant

    @xmasons

    So here’s my solution.

    1.) Create a page template.

    2.) Using the power of current_user_can(), we may utilize the bbPress’s user roles.

    3.) Insert the Topic Index shortcode with the do_shortcode() function inside the user role wrapper.

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