Separating the first post of each topic
I want to separe the first post of each topic from the loop ol list but I can find out how. In topic.php here;
<ol id="thread" start="<?php echo $list_start; ?>">
<?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
<?php bb_post_template(); ?>
<?php endforeach; ?>
I’d like to change the loop so I can insert a h6 header after the first post and threads look like this;
h6 -> “Topic title”
h6 -> “Responses; “
ol li -> rest of the posts
Is it possible to build a custom loop that only shows the first post and then insert a second loop for the rest of the post with an offset of 1?
- You must be logged in to reply to this topic.