How do I add the “Latest reply by [username], X days ago” on the topic list?

Replies
1
Voices
2
Freshness
Followers

1

I’m setting up the pro version of this plugin for a client. How do I add the “Latest reply by [username], X days ago” meta under the topic title? It appears on the demo board here: https://demo.wpdiscussionboard.com/

What options do I need to configure in settings for this, and does it require something adding to the shortcode or a PHP snippet to work?

Thanks!

  • Hi Jay,

    Adding the “Latest reply by [username], X days ago” will require your dev to overwrite the template. The changes depends on your theme, but ideally you would need to add a snippet code:
    $latest = apply_filters( 'singularity_ctdb_latest_reply_text', __( 'Latest reply by:', 'singularity' ) );

    In our case, we are using singularity theme and we have this snippet on our file singularity/template-parts/content-discussion-topic.php:
    snippet for latest replies

    Thank you, and hope this help.

    Regards,
    WPDB