From 802057e81c65f8dc30fc87c8b59633c5076bc137 Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Wed, 31 Aug 2022 17:14:42 +0200 Subject: [PATCH] brizy wordpress shit. had to google my own article --- .../post/2020/05/page-building-with-brizy-in-wordpress.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } ```