Home › Forums › General Issues › show post meta from previous post › Reply To: show post meta from previous post
Answering a very old question just in case someone happens to be looking for an answer to this.
There is no indication in the OP how the variable
$previous_post is populated.
For this see get_previous_post(). This call must be in “The Loop”
$previous_post = get_previous_post(); echo get_field('show_this_tomorrow', $previous_post->ID);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.