WordPress plugin that works with FeedWordPress and Display Posts Shortcode to display comments on the "host" content provider.
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
list-remote-comments.php
readme.md

readme.md

List Remote Comments

This plugin works with FeedWordPress and Display Posts Shortcode to display comments on the "host" content provider.

Shortcode

[list-remote-comments]

When used in conjunction with Display Posts Shortcode the list-remote-comments shortcode will append comments to the post.

Usage

[list-remote-comments]

[display-posts category= ... ]

IMPORTANT [list-remote-comments] shortcode MUST COME BEFORE [display-posts] shortcode. It will not work otherwise.

Template Tag

Alternately you can use the template tag list_remote_comments() to display comments in your templates.

Usage

list_remote_comments( false, true, true, true, 5, true)
Argument Default Type Description
$comment false Boolean Output full comment
$title true Boolean Output title
$date true Boolean Output Date
$link true Boolean Wrap title in permalink to post
$max_number null Number Set max limit of comments to display
$dispay_list_title true Boolean Display "Comments: " before list
$cache 43200 Number Cache in seconds

notes

Based on Remote Comments plugin by Martha Burtis

changelog

v 1.2

  • fix cache bug
  • upgrade cache to every 12 hours
  • add argument for cache

v 1.1

  • added proper cache
  • more aggressive at 3600
  • added more style classes