您需要允许meta标记的content属性包含一个短代码,例如在“functions.php”中添加:
add_filter( \'wp_kses_allowed_html\', function ( $allowedposttags, $context ) {
if ( $context == \'post\' ) {
$allowedposttags[\'meta\'][\'content\'] = 1;
}
return $allowedposttags;
}, 10, 2 );
然后是你原来的
(without the quotes in param=link
)<META HTTP-EQUIV="Refresh" CONTENT="3; URL=[urlparam param=link]">
应该有用。