Comment Filtering

Description

This plugin requires Bootstrap, and makes use of the Bootstrap Datepicker at https://eternicode.github.io/bootstrap-datepicker/.

This plugin creates a search area above comments on any post or page. Here, users can choose to enter a search term, enter a date range, or select an option of the recent past (Today, This Week, This Month) from a dropdown. They can also combine these options to search for terms within a certain time period. Please note, a selected “recent past” option will override a date range entered by the user.

The search uses AJAX to query your database for matching comments, and returns all of the relevant results in the comment area.

A term search searches both author names and comment content.

Screenshots

  • This shows what the search and filter interface looks like (Please note, Bootstrap is required)

Installation

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Comment Filtering screen to configure your pagination.

FAQ

It doesn’t look right, and it’s not working?

Do you have Bootstrap installed and loading correctly? If not, head to https://getbootstrap.com/.

Can I search only by date range?

Yes, you can search by any combination of search term and date range.

Why isn’t my custom date range isn’t returning the right results?

Most likely, you have an option selected from the options for the recent past (Today, This Week, This Month). These will automatically override the custom date range you entered in.

Contributors & Developers

“Comment Filtering” is open source software. The following people have contributed to this plugin.

Translate “Comment Filtering” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0

  • First release