Skip to:

Can't list topics in forum archive with "read_hidden_forums" capability

  • WordPress 3.1.4, bbpress plugin 2.0

    I want role Participant to view forum/topic/reply with Hidden attribute but not Private,how can I do?

    I try to change some definition manually in bbp_get_caps_for_role() like this:

    case $participant_role :

    $caps = array(

    // Forum caps


    // Topic caps



    // Reply caps



    // Topic tag caps




    and reinstall wordpress and bbpress, create a Participant account and it works.

    Everything seems OK but only when I access pages like: http://localhost/?forum=a-hidden-forum, it returns a 404 page, not a topic list.

    Other pages like “http://localhost/?topic=a-topic-in-a-hidden-forum”, “http://localhost/?post_type=forum” and widges in sidebar return the right contents.

    I also try adding both

    // Forum caps



    to Participant and as a result, every pages are displayed even “http://localhost/?forum=a-hidden-forum” and topics in Private forum.

    It seems have something to do with actions in “bbp-init” in which return a wrong string when reaching for perameter “forum”.

    Sorry for not viewing all previous QoA but the most similar topic I’ve found is “Forum Participant role cannot view private forum” but it doesn’t help.

    Is there any way to solve my problem?

    Thanks for any help :)

Viewing 3 replies - 1 through 3 (of 3 total)
  • I solve it myself.. It seems that all unpublic forum are classified into private posts in bbp_map_meta_caps(), including hidden. I change some code and it work well. Maybe adding a read-hidden-post in post_type during activating bbpress is better. Thanks so much..



    Would it be possible for you to share how you solved this? I’m struggling with the same issue, making some hidden forums, some private forums, with Membership plugin to control access…



    Okay, nevermind. Found that if I manually set permissions via Membership plugin on forum creation page, it bypasses this issue.

    EDIT – my declaration this was solved was premature. Still banging on it.

    • This reply was modified 11 years, 7 months ago by goddess_dix.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar