from a page that has no literal content (uses shortcodes)-一整个雨季的回答
from a page that has no literal content (uses shortcodes)
I have a WordPress powered website that on the homepage uses a static page with nothing but shortcodes to generate the content.
The page gets these shortcodes by set
Try this(paste this code somewhere in functions.php):
functions.php
function shortcode_empty_paragraph_fix($content){ $array = array ( '[' => '[', ']' => ']', ']' => ']' ); $content = strtr($content, $array); return $content; } add_filter('the_content', 'shortcode_empty_paragraph_fix');
[' => '[', ']