2
0
Fork 0
mirror of https://github.com/discourse/wp-discourse.git synced 2025-10-03 08:59:21 +08:00
WordPress plugin that lets you use Discourse as the community engine for a WordPress blog http://www.discourse.org
Find a file
2018-04-18 13:45:46 -07:00
admin Validate join-discussion-text option 2018-04-18 12:58:38 -07:00
assets Add new screenshots for the WordPress repo page 2017-04-13 15:28:37 -07:00
bin Update test suite for WordPress 4.6 2016-08-18 13:24:37 -07:00
css Add styles for Twitter 2018-03-13 14:07:28 -07:00
js Add around function arg 2017-12-10 15:17:13 -08:00
lib Pass discourse_comments_number to no_replies function 2018-04-18 13:00:14 -07:00
templates Add doc comment parameter 2018-04-18 13:45:46 -07:00
tests Remove old test files 2018-04-02 17:27:39 -07:00
.gitignore Fix typo - integration, not integrations 2017-04-18 12:39:20 -07:00
.jscsrc rename to .jscsrc 2016-06-06 16:54:22 -07:00
.travis.yml Fix comments 2017-07-28 16:55:31 -07:00
CHANGELOG.md Merging changes from Git for 1.0.0 release 2016-09-27 00:23:10 +00:00
codesniffer.ruleset.xml Allow snakecase member variables 2017-11-07 11:49:35 -08:00
composer.json Fix license identifier 2018-02-16 16:21:38 -08:00
composer.lock use a less strict version constraint for composer/installers 2017-12-11 12:37:48 +01:00
LICENSE license file an fixes 2013-03-27 22:38:21 -07:00
phpunit-unit-tests.xml Add configuration file for WP_Mock unit tests 2017-04-11 16:13:35 -07:00
phpunit.xml.dist Exclude DisallowSpaceIndent rule to get around issue with travis-ci 2017-04-11 15:49:05 -07:00
README.md Remove OpenCollective links from readme 2017-11-22 12:25:44 -08:00
readme.txt Update version to 1.6.1 2018-04-04 11:42:34 -07:00
uninstall.php Changes for php codesniffer 2017-07-10 13:57:46 -07:00
wp-discourse.php Update version to 1.6.1 2018-04-04 11:42:34 -07:00

WP Discourse

OpenCollective OpenCollective

Note: the wp-discourse plugin requires >= PHP-5.4.0.

The WP Discourse plugin acts as an interface between your WordPress site and your Discourse community.

Use Discourse for comments:

  • Automatically creates a forum topic for discussion when a new blog post is published.
  • Associates WP author accounts with their respective Discourse accounts. Does not require SSO.
  • Replies from the forum discussion can be embedded in the WP blog post. Select which replies to display based on post score and commenter "trust level" -- see docs.

See it live

Single Sign On

The plugin also comes with optional SSO functionality which lets you use your WordPress site as the Single Sign On provider for your Discourse forum.

This will override Discourse's native (and powerful) login flow and is only recommended for use cases that strictly require such a setup, e.g. a site that is already using WordPress for large scale user management.

Contact

Installation

From your WordPress dashboard

  1. Visit 'Plugins > Add New'
  2. Search for 'WP Discourse'
  3. Activate WP Discourse from your Plugins page

From wordpress.org

  1. Download WP Discourse
  2. Upload the 'wp-discourse' directory to your '/wp-content/plugins/' directory
  3. Activate WP Discourse from your Plugins page

With Composer

If you're using Composer to manage WordPress, add WP-Discourse to your project's dependencies. Run:

composer require discourse/wp-discourse ~1.3.2

Or manually add it to your composer.json:

{
  "require": {
    "php": ">=5.4.0",
    "discourse/wp-discourse": "~1.3.2"
  }
}

For more detailed instructions please see the setup page of the wp-discourse wiki

Frequently Asked Questions

Does this plugin install Discourse for me?

No this plugin acts as an interface between Discourse and WordPress. For it to work you will need to first set up Discourse forum. You can install Discourse for yourself following either of these guides:

Can I import old WordPress comments as Discourse comments (i.e. "replies")?

No.

Do WordPress and Discourse have to be installed on the same server?

The plugin uses the Discourse API, so your forum and blog can be hosted separately and the integration will still work. In fact, we strongly recommend hosting the two applications separately, since their hosting requirements are very different.

Is it possible to customize the comment templates?

Yes, the html templates used for publishing posts on Discourse and for displaying comments on WordPress can be customized in your theme. This is done by hooking into the filters that are applied to each template.

For more details on template customization, take a look at this section of our wiki: Template Customization

Contributing

  1. Fork this repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new pull request