0

Всем привет.

Создал 2 поля для формы комментариев. введите сюда описание изображения

Как их вывести? Пробую

<?php the_field('advantages', $comment); ?>
<?php the_field('advantages', $post->ID); ?>

Не выводится.

0

1 ответ 1

1
<?php the_field('advantages', "comment_".$comment->comment_ID); ?>

или

<?php the_field('advantages', $comment); ?>

$comment - объект комментария

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.