Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Disqus latest comments addon

List your websites latest Disqus comments in a page, post or widget

This plugin will allow you to list your websites latest Disqus comments in a page, post or widget.

Simply install and activate the plugin, browse to 'Comments' -> 'Disqus Latest Comments' menu, add in your Disqus shortname, then include the [disqus-latest] shortcode in the page, post or widget of your choosing.

The configuration and options can be found in the WordPress administration. Browse to 'Comments' -> 'Disqus Latest Comments'.

Options are available for:

  • Number of comments listed
  • To show avatars
  • Size of avatar images
  • Excerpt length (length of comment shown in widget)
  • A choice of three pre-configured styles - grey, blue and green or the ability to use your own custom CSS
  • Ability to bypass caching (for debugging or attempting to bypass any caching plugins you may have installed)
  • Ability to translate Disqus time terms (for example 'days ago')
  • Ability to make linked Disqus usernames open in a new window (target='_blank')

You can see a working example of the plugin at

Author Adrian Gordon
Contributors ovann86
Tags comments, disqus, latest, recent, shortcode
  1. disqus-latest-comments screenshot 1

    This screenshot shows the comments that are displayed on the front end with the 'Grey' style applied.

  2. disqus-latest-comments screenshot 2

    This screenshot shows the options for configuring the plugin.

  3. disqus-latest-comments screenshot 3

    This screenshot shows the options for translating the Disqus time terms.

  1. Install plugin from WordPress administration or upload folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in the WordPress administration
  3. In the WordPress administration, browse to 'Comments' -> 'Disqus Latest Comments'
  4. Enter your Disqus shortname and any other settings as desired and save the changes
  5. Open or create the post or page you want the comments to be included in
  6. Enter the shortcode [disqus-latest] into the content area and save the changes
  7. The comments will now be displayed on the post of page where the shortcode has been used


  • Maintenance: update instructions on how to find Disqus shortname on Disqus website
  • Maintenance: improve internationalisation (i18n) for translating plugin to other languages
  • Maintenance: move JavaScript to external file
  • Maintenance: move CSS to external files
  • Maintenance: add plugin 'Settings' link in WordPress administration plugins page
  • Maintenance: improve input and output sanitisation


  • Feature: Improve support for HTTPS websites.


  • Feature: Add 'Custom' option for styles. Allows you to enter your own CSS styles from the configuration screen.
  • Maintenance: Moved CSS load in page footer using wp_footer action.
  • Maintenance: General formatting of plugin code to make it more readable.


  • Fix: Resolve issue introduced in version 1.4.1.


  • Feature: Added ability to make linked Disqus usernames open in a new window (target='_blank'). Enabled from options by ticking 'Open Disqus usernames in new window'.


  • Feature: Added translation options to translate Disqus time terms (for example 'days ago').


  • Fix: Resolved issue with using shortcode in widget areas - where comments would appear before the widget title.
  • Maintenance: Tidy plugin code.


  • Feature: Added 'Bypass Cache' option in case website caches Disqus API requests.
  • Fix: Resolved issue with Avatar Size and Excerpt Length not working.
  • Fix: Changed Avatar Size to use only the three supported Disqus avatar sizes - 35px, 34px and 92px.


  • First public release.

How does this work?

This plugin uses the Disqus API to retieve the latest comments for the given Disqus account.

What are the settings

On the 'Comments' -> 'Disqus Latest Comments' page you will find several settings.

'Disqus Shortname' - This is where you need to add the shortname for the websites Disqus account.

'Number of comments' - This controls how many latest comments are displayed.

'Hide avatars' - This disables the avatars (images) displayed with each comment.

'Avatar size' - This controls the size of the avatar (image) displayed with each comment.

'Except length'- This controls the length of the comment displayed on the page.

'Style' - This allows you to select three different styles for the comments - grey, green and blue. You may also choose none or custom.

'Bypass Cache' - This option can be used if a website is caching the page or post the comments are being displayed on, or the website is caching the Disqus API request.

What are the default values

'Disqus Shortname' is required - there is no default. A warning message will be displayed instead of the comments scren if you do not specify a shortname.

'Number of comments' - 5

'Hide avatars' - Off - avatars will be displayed

'Avatar size' - 35 pixels

'Except length' - 200 characters

'Style' - None

'Bypass Cache' - No

Example custom CSS style

The below can be used as a template when creating your own custom style. This can be pasted into the 'Custom CSS' option when the custom style is selected.

/* the entire list */

.dsq-widget-list {
display: block;

/* each comment item */

.dsq-widget-item {
position: relative;

/* hover over style for each comment item */

.dsq-widget-item:hover {
background: #f6f6f6;

/* the avatar image in each comment item */

.dsq-widget-avatar {

/* the Disqus user name */

.dsq-widget-user {

/* the comment */

.dsq-widget-comment {
display: block;

/* paragraph that contains the link to the post and day */

.dsq-widget-meta {

/* make the post title bold */

.dsq-widget-meta a:nth-child(1) {
Version 1.7.0

Requires WordPress version: 4.0 or higher

Compatible up to: 4.7.2

Last Updated 26 Jan 2017

Date Added: 20 Oct 2014


4.2 stars
5 ratings


Not Enough Data

Works: 0
Broken: 0