У меня есть способ выполнить их, но это немного сложно:)
Вам нужно немного изменить шаблон, указав свой шорткод (например: [inline ....]) между <shortcode></shortcode>
, затем
Вот функция, которую нужно поместить в конец вашей функции.
function parse_execute_and_echo_shortcode($_path) {
$str = file_get_contents($_path);
while (strrpos($str, "<shortcode>")) {
$beginShortcode = strrpos($str, "<shortcode>");
$endShortcode = strrpos($str, "</shortcode>");
$shortcode = substr($str, $beginShortcode + 11, $endShortcode - ($beginShortcode+11));
$shortcode = do_shortcode($shortcode);
$str = substr_replace($str, $shortcode, $beginShortcode, $endShortcode + 12);
}
echo $str;
}
Затем вы можете позвонить function parse_execute_and_echo_shortcode
и указать ему путь к вашему файлу, содержащему шорткоды.
Надеюсь, что кто-то может помочь