Support » Plugin: Article List Manager (arlima) » Show number of comments

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author victor_jonsson



    That is correct, the number of comments is not displayed by default. You will have to write code if you want it that way. There’s a lot of information about how to modify the behavior of arlima in the wiki. This issue has an answer in the FAQ as well.

    / vic

    Thanks Victor,

    I write the code that appaers in the wiki in functions.php, but it does nothing.

    Can you help me?

    Plugin Author victor_jonsson


    Well… Are disqus posting the comments back to your site?

    What happens if you use this code instead:

    function arlima_comment_count($data) {
        $data['content'] = 'Changing stuff...';
        return $data;
    add_filter('arlima_article_content', 'arlima_comment_count');

    Sorry, but It does nothing…

    In ‘changing stuff’ I write anything in special?

    Another way, this is my article.tmpl in arlima/templates (this is the default file by arlima). I see that only appaers a function to write comments in related posts, not posts in general:

    <div id="${}" class="${container.class} tmpl-article">
        {{if streamer}}
            <div style="${}" class="streamer ${streamer.type}">
                <span>{{html streamer.content}}</span>
        {{html article_begin}}
        {{include parts/top-image.tmpl}}
        {{html article.html_title}}
        {{html article.html_text}}
        {{if related}}
            <div class="teaser-related-posts">
                    {{if related.single}}
                        {{each related.posts}}
                                <a href="${this.url}" class="related">${this.post_title}</a>
                                {{if this.html_comment_stats}}
                                    <span title="Number of comments" class="num-comments">
                                        {{html this.html_comment_stats}}
    {{if sub_articles}}
        <div class="teaser-children">
            {{html sub_articles}}
    {{html article_end}}

    Hello, Victor & others,

    can you reply me? This issue is not resolved .

    Plugin Author victor_jonsson


    I’m having problems helping you since the filter example is successfully tested and used in several production websites. What theme are you using? Are you using any caching plugin? Are you inserting the list using a short code and in that case have you set any filter_suffix?

    (the comment stats variable in the template is used with another filter, it will be used by the plugin Microkids related post plugin, in case you install that plugin)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show number of comments’ is closed to new replies.