Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Last Post on Forums


buddha trance
Member

@buddha-trance

I tried what Ben L. suggested and it works fine even with a forum with no topics (in which case there is no topic title shown because there is none, and it shows a view count of 0)

I implemented it this way:

<td class="num"><a href="<?php $topic = $GLOBALS['topic'] = current( get_latest_topics( array( 'number' => 1, 'forum' => get_forum_id() ) ) ); ?>"><?php topic_title(); ?></a></td>

Skip to toolbar