Since you are using WordPress, I’d also recommend you look into the wp-discourse plugin. It should make your life a lot easier.
A few notes to your usage of the embedding feature:
- You only need to use
topicIdwhen you want to point to an existing topic that wasn’t created by embedding. - Otherwise it should be fine to always use the
discourseEmbedUrlwith the URL of the blog post.