diff --git a/content/post/2020/05/page-building-with-brizy-in-wordpress.md b/content/post/2020/05/page-building-with-brizy-in-wordpress.md index 6f6dcb73..076151eb 100644 --- a/content/post/2020/05/page-building-with-brizy-in-wordpress.md +++ b/content/post/2020/05/page-building-with-brizy-in-wordpress.md @@ -35,7 +35,10 @@ Actually, injecting post content using that shortcode comes with a big shortcomi ```php function su_post_content_filter($value) { - return apply_shortcodes($value); + // add your dirty hacks using preg_replace BEFORE apply_shortcodes that hijacks your embeds! + // remember: these won't work for RSS feeds. Better to use add_shortcode(). + $value = apply_shortcodes($value); + return $value; } ```