Skip to:
Content
Pages
Categories
Search
Top
Bottom

Index short code = Broke

  • @gptxffa

    Participant

    What happened? The index doesnt display properly anymore. here is what I have in my functions file

    function recent_bbpress_topics() { 
     echo do_shortcode("[bbp-forum-index= search='no'] [bbp-topic-form]");
     }
    
    add_action('bbp_template_after_topics_index','recent_bbpress_topics');
    
    add_filter( 'bbp_current_user_can_access_create_topic_form', 'custom_bbp_access_topic_form' );
    function custom_bbp_access_topic_form( $retval ) {
    
    	if ( bbp_is_forum_archive() ) {
    		$retval = bbp_current_user_can_publish_topics();
    	}
    
    	return $retval;
    
    }

    Its always worked in the past no problem. I found that if i deleted = search='no' then it works again. I would however prefer to not display the search bar because its redundant. Just not sure what changed to stop that original code from working.

    Thanks

Viewing 1 replies (of 1 total)
  • @robkk

    Moderator

    The default bbPress forum index shortcode works fine. And it does not have arguments for removing the search bar, and showing specific forums in the forum index only.

    You had some code that uses the shortcodes in the plugin bbp style pack.

    Here is a shortcode from the bbp style pack plugin.

    [bsp-display-forum-index forum= '2932, 2921' breadcrumb='no' search='no']

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