Forums
-
- Forum
- Posts
-
- Installation
- 28,531
- Troubleshooting
- 62,945
- Themes
- 10,453
- Plugins
- 15,405
- Requests & Feedback
- 15,041
- Showcase
- 3,250
-
hmmm…not sure about the ‘leak in’ bit, how are lines being displayed if $prev etc. is blank?
you could add a check
so set
$forum_id = bbp_get_forum_id() ;
above the while statement and then check at the appropriate point
if (wp_get_post_parent_id($prev_id) != $forum_id) {
etc.
}