if that code does what you want then just use the same logic you did in
How to reorder topics in one forum?
eg
function rkk_topic_av() {
$thisforumid = bbp_get_forum_id();
if($thisforumid == 43135) {
echo bbp_get_topic_author_link( array( 'size' => '48' , 'type' => 'avatar'));
}
}
add_action('bbp_theme_before_topic_title','rkk_topic_av');
Yep, that’s great. Thanks again, Robin.
If anyone else is interested, in addition to the above code placed in functions.php, I amended loop-single-topic.php in my child theme thus:
<a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title(); ?>
<?php $forum_id = bbp_get_forum_id();
if (( $forum_id == 41371) ){
?>
- <?php echo bbp_get_topic_author(); ?></a>
<?php
}
else {?>
</a>
<?php
}?>
<?php do_action( 'bbp_theme_after_topic_title' ); ?>
<?php bbp_topic_pagination(); ?>
<?php do_action( 'bbp_theme_before_topic_meta' ); ?>
<p class="bbp-topic-meta">
<?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
<?php $forum_id = bbp_get_forum_id();
if (( $forum_id == 41371) ){
?>
<?php
}
else {?>
<span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
<?php
}?>
This selects a specific forum and within that forum it removes the ‘started by’ meta info that normally appears under the title. Instead it places the topic author’s display name (not user name) as an extension of the topic title, separated by a hyphen. The link to the author is removed and instead becomes part of the link to the topic.