Reply To: subforum parent name
Thank you dear for your quick reply ; i copy/past the loop single forum file into my child theme root (what i did is the good way to do that ?) , then i added your script like this :
<a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>">
<?php $forum = bbp_forum_id();
$parent = wp_get_post_parent_id($forum);
if (!empty($parent)) {
echo esc_html( get_the_title($parent) ) ;
}
?> : <?php bbp_forum_title(); ?></a>
The result is that i got the id forum behind each forum title (on the main parents forums list) and on the subforum list (when i click on a forum on the forums list), i got the subforum id attached to parent title : subforum title