Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Last reply author’s name in loop-single-topic?

@kasperdalkarl

Participant

It probably comes from the theme I have, it currently looks like this in loop-single-topic:

   <div class="nk-forum-title-sub">

      
        <?php
        $link_url = bbp_get_topic_last_reply_url();
        $title = bbp_get_topic_last_reply_title();
        ?>
        <div class="nk-forum-activity-title" title="<?php echo esc_attr($title); ?>">
            <a href="<?php echo esc_url($link_url); ?>"><?php echo esc_html($title); ?></a>
        </div>
        
        
         <div class="nk-forum-activity-date">
            <?php do_action('bbp_theme_before_topic_freshness_link'); ?>
            <?php $time_since = bbp_get_topic_last_active_time();
            if (!empty($time_since)) {
                echo esc_html($time_since);
            } else {
                echo esc_html__('No Replies', 'godlike');
            }
            ?>
            <?php do_action('bbp_theme_after_topic_freshness_link'); ?>
        </div>
           

            <?php do_action('bbp_theme_before_topic_started_by'); ?>

            <span
                class="bbp-topic-started-by"><?php printf(esc_html__('Started by %1$s', 'godlike'), bbp_get_topic_author_link(array('type' => 'name')), bbp_get_reply_post_date()); ?></span>

            <?php do_action('bbp_theme_after_topic_started_by'); ?>

            <?php if (!bbp_is_single_forum() || (bbp_get_topic_forum_id() !== bbp_get_forum_id())) : ?>

                <?php do_action('bbp_theme_before_topic_started_in'); ?>

                <span
                    class="bbp-topic-started-in"><?php printf(__('in: <a href="%1$s">%2$s</a>', 'godlike'), bbp_get_forum_permalink(bbp_get_topic_forum_id()), bbp_get_forum_title(bbp_get_topic_forum_id())); ?></span>

                <?php do_action('bbp_theme_after_topic_started_in'); ?>

            <?php endif; ?>

        </div>
Skip to toolbar