WP Discourse Embed Plugin

I just published a new WordPress plugin to embed Discourse comments using Discourse Embed code.

This WordPress plugin injects the Discourse embed code in blog posts, allowing you to use Discourse as community engine.

It takes two options:

Discourse URL should be the URL of your Discourse instance, this field is required.

Embed Discourse comments on posts published after date is an optional field, if provided only blog posts published after the date you specified will use Discourse comments (hiding the original WordPress comments). Blog posts published before the provided date will use original WordPress comments.

That’s it once you have activated the plugin and provided Discourse URL, you should start seeing Discourse comments embedded under your blog posts!

If you want to show comment count under each topic on blog front page, then add this HTML snippet (in your theme index file) under topic markup:

<a href="<?php permalink_link(); ?>#discourse-comments">Discussion</a>

The above snippet will show as:

Discussion (8 replies)

Where 8 is the reply posts count for that particular topic.

This plugin also adds author nickname in meta tag, like:

<meta name="author" content="techapj">

Where techapj is WP nickname of post author.

This plugin assumes that you have already configured embedding settings as instructed here.

Download the plugin, and start contributing! – GitHub - arpitjalan/wp-discourse-embed: WordPress plugin that lets you use Discourse as the community engine for a WordPress blog

10 Likes