Move Listing of New Topics/Posts
-
Hello, thanks for your attention.
I’m currently using some code in my functions.php to show my sub-forums on a separate line, which is better than having them clustered together.
They also show the amount of new topics and replies within parenthesis, example;
Other General (2, 5) Real Life (8, 5) Humour (7, 9)
Where “Other” is a forum and the others is sub-forums, and you can see the amount of topics and replies within the (x, topics, y replies).
What I need/want is to move the (x, topics, y replies) to the same place it shows, but only on the same line as the sub-forum, as the parent-forum.
Image example: http://imgur.com/ssonCD2
Is there any code I could put in my functions.php which would support this, or a plugin I could look at? This shouldn’t be hard to do, but yet my Google Search Adventure has reached it’s end (for now, at least).
Thanks for every bit of help.
-
The file that displays this is loop-single-forum
wp-content/plugins/bbpress/default/bbpress/loop-single-forum.php
You can save a version to your theme – see
item 3 for how to do this
If you amend the current line 31
from
<?php bbp_list_forums(); ?>
to
<?php bbp_list_forums(array ( 'show_topic_count' => false, 'show_reply_count' => false, 'separator' => '', )); ?>
It will stop it displaying the numbers in brackets after each topic.
To display these against the items will need some code at line 42 – beyond my immediate knowledge as to what you’d put there to get it to match the list
`
Take a look the codex for all the options available for
bb_list_forums
also.An advanced way of doing this is also in this gist https://gist.github.com/ntwb/3133449 which is based on @lynq topic here https://bbpress.org/forums/topic/customising-bbp_list_forums-last-poster-block/
- You must be logged in to reply to this topic.