J
J
jetstarwars2020-06-17 08:26:09
WordPress
jetstarwars, 2020-06-17 08:26:09

How to display the ACF (date) field in a separate module?

5ee9a80e13f37147910427.png
For entries, fields with acf were created, it is necessary to display the date of the event on the main page in the post output module.
Tried different combinations
//<?php echo the_field('nsk-right-day', 995); ?>HELLO//
<?php echo the_field('nsk-right-day', $page_id); ?>
<?php the_field('nsk-right-day', $page_id); ?>
Doesn't display the date,5ee9a948cbd79416503442.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yarovikov, 2020-06-17
@jetstarwars

<?php the_field('piska'); ?>
Or Or Or
<?php echo get_field('piska'); ?>
<?php the_field('piska', get_the_ID()); ?>
<?php echo get_field('piska', get_the_ID()); ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question