Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bbPress - Custom Forum List
<?php
/*
Plugin Name: bbPress - Customised forum list arguments
Plugin URI: https://gist.github.com/ntwb/3797945
Description: bbPress - Customised forum list arguments
Version: 0.3
Author: Stephen Edgar - Netweb
Author URI: http://netweb.com.au
*/
add_filter('bbp_before_list_forums_parse_args', 'ntwb_bbpress_list_forums' );
function ntwb_bbpress_list_forums() {
$args['before'] = '<ul class="bbp-forums-list">';
$args['after'] = '</ul>';
$args['link_before'] = '<li class="bbp-forum">';
$args['link_after'] = '</li>';
$args['count_before'] = ' (';
$args['count_after'] = ')';
$args['count_sep'] = ', ';
$args['separator'] = ', ';
$args['forum_id'] = '';
$args['show_topic_count'] = true;
$args['show_reply_count'] = true;
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.