By default, BBpress displays the Freshness of the last topic posted on the forum homepage. This is bad for SEO because Google Webmaster Tools will display the words ago, months and a bunch of numbers for the dates and times as the most important keywords of your BBpress site.
I’m guessing that the keyword ago probably isn’t the one you want to optimize your website for, so here’s how to change BBpress so it displays the title of the last post as the link name, instead of the age of the topic:
- Navigate to bbpress\templates\default\bbpress\
- Edit loop-single-forum.php
- Make the following change to the code at about line 52:
Replace :
<li class=”bbp-forum-topic-count”><?php bbp_forum_topic_count(); ?></li>
<li class=”bbp-forum-reply-count”><?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?></li>
<li class=”bbp-forum-freshness”>
With
<a class=”bbp-forum-freshness” href=”<?php bbp_forum_last_topic_permalink(); ?>”>
<?php bbp_forum_last_topic_title(); ?></a>