Decent Comments API

Use this function to render commments:

Decent_Comments_Renderer::get_comments( $options = array() )

Example:

Render comments using default options:

echo Decent_Comments_Renderer::get_comments();

$options is an array that supports the following settings, defaults are shown for each:

ellipsis
Default : “…”

excerpt
Default : true

max_excerpt_words
Default : 20

strip_tags
Default : true

avatar_size
Default : 24

number
Default : 5

order
Default : “DESC”
Possible values: “ASC”, “DESC”

orderby
Default : “comment_date_gmt”
Possible values:
“comment_author_email” : Author Email
“comment_author_url” : Author URL
“comment_content” : Content
“comment_date_gmt” : Date
“comment_karma” : Karma
“comment_post_ID” : Post

show_author
Default : true

show_avatar
Default : true

show_link
Default : true

show_comment
Default : true

Comments are closed.
We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share