getting last post inside bb_forum_class()
I’m trying to make my front-page.php template look a little more like a conventional vBulletin type theme by displaying the “last post title and link” in a column next to the “forum title.” The problem is that topic_title() isn’t giving me what I want inside the loop. I guess I need some sort of nested loop or an alternate function.
Here’s an example of a vB style i’d like to emulate:
Main Car Forum (This is a top level forum)
Car Forums by Brand <– this is a bbPress category forum w/ subforums per car brand.
— Honda Forum 1…………………….. last post: my car broke down
— BMW Forum 2…………………….. last post: new tires?
The problem is when I play w/ the front-page template I can only get the last post info for the “Main Car Forum” not the brand subforums and even that isn’t actually giving me what I think it should.
Here’s what I have in my 2nd HTML column of my modified template:
<td class="topicTitle"><a href="<?php topic_last_post_link(); ?>"><?php topic_title(); ?> </a>
<br /><span class="lastPoster">by <a href="<?php user_profile_link($topic->topic_last_poster) ?>"><?php topic_last_poster(); ?></a></span>
The topic_last_post_link and topic_title() aren’t giving me the expected results. For topic_last_post_link it’s actually returning the last topic/thread link not the last post link and that’s for the “Main Car Forum.” For the subforums it’s displaying the same exact thing as it does for “Main Car Forum” it’s not actually displaying the topic/post info for the correct subforum.
- You must be logged in to reply to this topic.