Cosmetic issue: Embed block leads to duplicate in discourse

Hey guys

Whenever there is an embed block (in this case a link to another post) in a blog post, it’s printed twice in the forum version:

  1. regular text link in a div > blockquote > p - which is not desired behaviour :x:
  2. as an iframe as embed - which is desired behaviour :white_check_mark:

How can we remove the text link above the embed?

1 Like

Hey @jrgong,

The two links are there in the original HTML of the Wordpress post from your screenshot (the first one is just hidden).

This one will need to be fixed on the Wordpress side in your editor. Discourse is just displaying what HTML is received from Wordpress.

You can do this using the wp_discourse_excerpt filter. See the examples here: WP Discourse Plugin Tips and Tricks

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.