Fix bbPress Form Shortcode not Showing

bbPress Create Topic Form not showing? I have guest posting enabled in my bbPress plugin but for some reason the Create Topic Form is not showing. This issue becomes apparent when the following are true:

  • Anonymous or Guest Posting is enabled.
  • The shortcode [bbp-topic-form] is used.
  • The shortcode is added on a page.
  • The page slug is the same as the default bbPress forums /forums/

For those having the same issue, you can either use a different page slug instead of the usual /forums/ or add this code to your theme’s functions.php

add_filter( 'bbp_current_user_can_access_create_topic_form', 'ra_bbp_create_topic_access' );


function ra_bbp_create_topic_access( $retval ) {

   if ( bbp_is_forum_archive() ) {
      $retval = bbp_current_user_can_publish_topics();
   }

   return $retval;
}

Leave a Reply

Please write your comments in english. I delete anything that even remotely resembles spam.

Note: When posting code, enclose it in pre and code tags.
e.g. <pre><code> Add code here </code></pre>