Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Paul Hughes

    (@paulhughes01)

    Hi there! Are you meaning to get it with a PHP function to use in your theme? Or in another context?

    If you are wanting in your theme, it is stored as post meta, so you can get it using:
    get_post_meta( $post_id, 'muut_comments_count', true );

    Let me know if that doesn’t give you what you’re needing. ??

    Thread Starter GAM Themes

    (@gamthemes)

    Hi,

    yes, i am using just php method and wordpress. like

    foreach ( $posts as $post ) {

    somecode then,
    <li class=”comment”><i class=”fa fa-comment”></i><?php get_post_meta($post->ID,’muut_comments_count’,true); ?> Comments

    }

    but it now working… so how can i calculate, how many total commented for the perticular post from muut.

    For example , Blog A , people commmented total 4 and it saved in muut server so how can i get this total commented figure for the particular post.

    Thanks

    Thread Starter GAM Themes

    (@gamthemes)

    it is also possible to get comments with reply count in total ?

    Plugin Author Paul Hughes

    (@paulhughes01)

    That code actually should do what you’re wanting; hmm, can you link me to your site, just so I can see the posts you have commenting attached to? The plugin automatically has support for that BUT, the alternative also would be to write code to hit the Muut API directly for the postcounts (currently the only RESTful method). See the documentation here.

    In any case, yes, if you could link me to your blog that’d be great so I can help out from there. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to count total comments for the post’ is closed to new replies.