Post Comments as bbPress Topics

By Robin W

★ 4.3/5 (18 ratings)300+ active installationsVersion 2.3.0

Replace the comments on your WordPress blog posts with topics from an integrated bbPress install

Description

Adds an option to the Discussion meta box to use a bbPress topic instead of WordPress comments, and displays that topic beneath the post on your site.

You can let the plugin create a new topic for you in the forum of your choice, or specify an existing topic to attach to the post.
A topic can be attached to as many posts as you’d like, but only one topic can currently be attached to a post.

Installation

  1. Extract the plugin archive
  2. Upload plugin files to your /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

I don’t see the Discussion meta box. Where is it?

See this article for a quick tip on how to toggle the Discussion meta box.

Screenshots

Changelog

2.3.0

*added the ability to clear the post cache on someone posting a new reply for those using caching plugins

2.2.9

*updated to correct error on Copy post comments to new topics

2.2.8

*updated to correct errors on selecting existing topic

2.2.7

*updated to correct errors on saving drafts and fix issues where the ‘classic editor’ plugin was being used

2.2.4

*further updated prior to re-open

2.2.3

*further updated prior to re-open

2.2.2

*updated prior to re-open

2.2.1

*corrected error on update comments on import

2.2.0

*corrected error on update post when topic slug not numeric

2.1.9

*reverted to == for most compare functions from ===
*replaced ‘create_function’ which was deprecated in php 7.2 and removed in php8 for line 355 and 408

2.1.8

*bug fix for post update – to correctly update the relared topic

2.1.7

*allow for topic deletion and remove post meta

2.1.6

*amended error in custom post types to ensure listing on upgrade

2.1.5

*added support for custom post types

1.9.5

*an automatic cache purge for wp-rocket and w3Total Control has been added

1.9.4

*corrections to apply filters on line 77 to take out syntax error

1.9.3

*Amend if(jQuery(this).attr(‘checked’)) { to if(jQuery(this).prop(‘checked’)) { to resolve jquery issue

1.9.2

*Localise messages

1.9.1

*Corrections to ‘do this for existing posts’ to re-enable

1.9.0

*Improved settings display

1.8.9

*added the ability to choose post and page types for display

1.8.8

*added the ability to show reply count in topic link

1.8.7

*minor amendment to prevent error on processing update

1.8.6

*minor amendment to prevent undefined variable warning

1.8.5

*prevent duplicate topic creation on post update during post creation

1.8.4

*amended bbppt_activate get_options to correctly load on null value (new installation)

1.8.3

*commented out filter in comment-bbpress.php line 15 as no longer needed and causing pagination to fail

1.8.2

*fixed call to deprecated function in comment-bbpress.php line 15
*amended index.php to allow for gutenberg page and post meta boxes

1.8.1

  • Fixed: Posts with draft settings did not have topics created under certain circumstances – thanks, Opinynated
  • Fixed: PHP notice when editing global settings for the first time
  • Changed: Updated default templates to look better with twentythirteen theme

1.8

  • Added: Anchor for “Respond” / “Leave a reply” links in post listings
  • Fixed: Post titles appeared blank when saving under certain circumstances – thanks, Keiser Media and nosignal
  • Fixed: Saved draft settings were not reflected when editing the post under certain circumstances – thanks, RobJustice777
  • Fixed: A couple other PHP warnings

1.7

  • Fixed: Multiple topics created for posts under certain circumstances – thanks, Erlend Sogge Heggen!
  • Fixed: Draft settings not properly deleted when publishing posts
  • Changed: Silenced a bunch of warnings for a cleaner debug experience

1.6

  • Changed: Will now create topics for posts marked ‘Private’ when selected – thanks, dhtc
  • Fixed: PHP warning about uninitialized $bbp object
  • Fixed: topic “Freshness” did not match post date for imported posts- thanks, Justin Mason
  • Fixed: comment bubble count didn’t match reply count when importing existing comments
  • Fixed: post settings for copying tags and comments did not reflect defaults

1.5

  • Added: Can import comments when bulk processing posts (with new default setting)
  • Added: Broad support for scheduled posts and those made by plugins
  • Added: Delete forum topics when deleting last associated post
  • Added: Template functions for integrators / theme developers
  • Added: much-needed action hooks — more to come!
  • Added: Debug hooks for diagnosing issues when processing new topics
  • Changed: dropped $bbp for carrying topic ID to template files — copies of comments-bbpress.php must be updated
  • Changed: Bulk processing now includes posts with topics attached (to copy tags and import comments)
  • Changed: Skip ineligible post types during bulk processing – thanks, Gawain Lynch
  • Changed: Skip pages during bulk processing (can use filter to include them)
  • Fixed: Make path to admin script MU-compatible
  • Fixed: Make topic date match post date when importing old posts (or setting post date in the interface) – thanks, casewolf

1.4

  • Fixed: duplicate topics created when updating posts with a default forum set – thanks, nchiari
  • Fixed: could not access multiple pages of replies from post – thanks, oddcopter
  • Added: bulk create topics for existing posts from the Discussion settings page

1.3

  • Added: support for copying existing comments to bbPress topic – generously contributed by javiarques!
  • Added: support for loading template files from theme directory
  • Changed: cleaned up the Discussion meta box a bit
  • Changed: moved away from $bbp since it has been dropped in bbPress 2.1
  • Fixed: not all forums appeared in dropdowns in some cases – thanks, javiarques

1.2

  • Added: support for copying tags from post to topic
  • Added: support for creating topics for XML-RPC posts (only if creating a topic is set in defaults)
  • Added: translation support – thanks, efedoso
  • Changed: addslashes to topic body, fixing some topic content issues – thanks, sangil

1.1

  • Added: support for bbPress 2.1
  • Fixed: Bug that broke “Link to topic” option until default discussion settings were saved

1.0

  • Changed: default topic text is processed with kses
  • Fixed: bug that could prevent going back to custom settings once defaults were selected
  • Fixed: short_open_tag issues – thanks, dalekoop and drsim
  • Fixed: error when default discussion settings hadn’t been saved – thanks, richardjay

0.9.5

  • Added: option to display only link to topic under post
  • Added: option to display newest/oldest x replies under post
  • Added: change the content of the new topic from the Discussion settings page
  • Added: option to “Use default settings” to keep topic display uniform
  • Changed: added placeholder text to make existing topic selection more intuitive – thanks, qgil
  • Changed: internal settings storage, for easier future changes

0.9

  • Fixed: bug preventing access to edit posts / pages under some conditions – big thanks, KaiSD

0.8

  • Changed: topic creation runs only when post is published, not when saving a draft

0.7

  • Added: strip shortcodes from excerpt in topic – thanks, wpforchurch
  • Added: bbppt_topic_content_before_link filter to change topic content without processing the link
  • Changed: stopped using deprecated function for excerpt generation

0.6

  • Added: bbppt_topic_content filter to let others change the content of new topics
  • Changed: Made error strings more detailed when creating or assigning a topic fails
  • Fixed: translation function error (used _( instead of __( – D’oh!) – thanks, justin-mason and David100351

0.5

  • Added: can set creating a bbPress topic for discussion as default for new posts
  • Changed: post meta format

0.4

  • Added: option to show only replies on the post / page
  • Fixed: link in forum topic was to nowhere – thanks, justin-mason
  • Fixed: could not select child forums when creating a new topic – thanks, justin-mason

0.3

  • Added: show reply count instead of comment count for posts with an attached forum topic
  • Changed: display an error if bbPress is not detected instead of failing silently
  • Changed: how bbPress is detected

0.2

  • Added: can use a topic ID or topic post_name/slug for existing topic
  • Added: better handling of bbPress environment
  • Fixed: use existing topic now works as expected
  • Fixed: finally settled on a name

0.1

Initial Release