Я получаю ошибку PHP "Call to ondefined function get_field" раз в некоторое время, но не последовательно. Бюллетки не отображаются на передней части. />https://www.advancedcustomfields.com/re ... ge/образно acf/init ?
А как насчет использования короткометражного кода? Это проблема?add_action('acf/init', function() {
$bulletin_text = get_field('bulletin_text', 'option');
function show_shortcode_bulletin(){
global $bulletin_text;
return $bulletin_text;
}
add_shortcode('bulletins', 'show_shortcode_bulletin');
});
Подробнее здесь: https://stackoverflow.com/questions/796 ... -shortcode
Мобильная версия