Embedding a category

I know that we can embed a topic, and I know that we can assign a category for new topics based on the embedding host. But is it possible to embed a category?

Here is the use-case we are exploring: A private Wordpress site with separate groups (e.g. Cat People, Dog People, Chicken People). Each group has a matching category in Discourse for their forums. On Wordpress we would like to embed the category for each group, listing the last 5-10 active topics. A user can click on a topic in Wordpress and join the conversation through Discourse.

I’ve seen that Twig Anything is one way to solve this problem, but is there a more “native” solution that I havn’t run into yet?


Can’t you just grab the RSS feed for the category?

Sure could! Either the JSON or RSS representation will give us the data for the category. Getting the data in a Discourse-like UI would be all the better (and easier).

+1 for getting the data in a Discourse like UI.
Any developments on this? Or is the only option still just pulling from a RSS feed?

1 Like

Hello everyone,
I wanna sync 2 category below:

“Nhà đất cho thuê” with URL: https://bdser.vn/c/nha-dat-cho-thue

push to:

“Nhà đất cho thuê” with URL https://canthuenhadat.com.vn/c/nha-dat-cho-thue

I setup as follows but i don’t now right or correct, everyone help me!

<div id='discourse-comments'></div>

<script type="text/javascript">
  DiscourseEmbed = { discourseUrl: 'https://canthuenhadat.com.vn/',
                     discourseEmbedUrl: 'https://bdser.vn/c/nha-dat-cho-thue' };

  (function() {
    var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
    d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);

After, i copy code and embed code to new topic in Canthuenhadat.com.vn, but not effect! :frowning: