Function:

mp_core_comments_template()

Purpose:

To show comments and the comment form for a page, post, or attachment.

Overview:

This template tag can be used in themes to output comments and the comment form. This is useful because it already makes use of other MP Core functions to get retina sized avatar images and the “mp_core_comment_form()” which outputs the comment form simplified without the extra, often un-needed comment directions which are default in WordPress.

Using this template tag will help comment areas standardized in themes which use the MP Core plugin.

The avatar size for comments is controlled using the ‘mp_core_avatar_size’ filter.

Usage:

In the comments.php template for your theme, you can use this template tag to show comments.

    //Call the mp_core_comments_template function if it exists
    if ( function_exists ( 'mp_core_comments_template' ) ) {
        mp_core_comments_template();
    }else{
        wp_list_comments(); comment_form(); paginate_comments_links();
    }

Parameters:

None.

Output:

The comments and comment form for a page, post, or attachment.