I do not think that this is possible. The Discourse code that is used for retrieving the topics is only pulling in the latest topic lists. The available filters that I am aware of for ordering the lists are replies, views, activity, likes. You could try ordering the lists with one of these filters to select the best topics. For example:
The font that is used in the iframe is set on Discourse. On the latest version of Discourse I’m running into an issue with setting the font when I embed a topic list on my WordPress site. I’m testing this locally, not on a production site, so that could be related to the issue. What I’m finding is that this style is being passed for the iframe’s font:
font-family: var(--font-family);
That style is being set on Discourse, but WordPress doesn’t have access to the variable, so the font is being set as Times New Roman on my site. I’ll look into this issue some more. (Edit: the issue with setting the font is due to recent changes to Discourse. We’ll get this fixed.)
This can be tricky. The iframe that is created is inside of the d-topics-list element that you add to the page. Setting the value to an explicit width in my website’s CSS is working for me. I think this could be improved though:
Hi there! I’m trying to embed posts on a WordPress site and the embedding part I got working. Is there a way to make the mobile view a bit more appealing? If posts have images, the layout of the columns with images get squeezed together, a simple
Hi, I’ve already embedded a list of topics on my website, but now I’m trying to feature one topic only based on tag, so I successfully embedded another list (with per-page=1) but the problem is that I cannot add CSS classes or ID so there is absolutely no difference between the first list and this one.
That means that even a simple thing like using a different background color for the one of the embedded lists is impossible.
Those errors look like they’re from mini profiler and probably not related to what a regular user sees. I visited your site and saw a list of topics with no errors.
I’m not sure it’s normal but it’s nothing to be concerned about. Most users don’t have access to mini profiler so it’s probably only showing that when you do it.
On Firefox and Chrome, the list doesn’t work as expected for us. Although we set it up to show 10 topics, it only shows 4.
On Chrome, we observe this js error when we embed the list:
Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin '' in a call to 'postMessage'.
at u (https://rembetiko.gr/assets/embed-application-9cef8308c816fc1d83137e63d6c556c6cc2b68fe2b6e5ce16cca6766ba2c0ae4.js:1:105)
at window.onload (https://rembetiko.gr/assets/embed-application-9cef8308c816fc1d83137e63d6c556c6cc2b68fe2b6e5ce16cca6766ba2c0ae4.js:1:515)
Interestingly this doesn’t happen on Safari.
The list is embedded on this website: https://rebetiko.sealabs.net (at the end of the page, if you want to test it for yourselves).
I had a problem with this too. Sometimes it looked fine. Sometimes the list of topics was cut short (as if it was decided by number of pixels rather than number of topics) and the font wasn’t as expected (I can’t remember the details). I switched to using the Discourse RSS feed instead. I only use Chrome and didn’t suspect that it might have been a problem just with Chrome.