Home › Forums › Front-end Issues › get_field stops working when moving to WPML › Reply To: get_field stops working when moving to WPML
Hi @philipp
Your first step is to debug variables:
<?php
// test field
$post_objects = get_field('snippet_list');
echo '<pre>';
print_r( $post_objects );
echo '</pre>';
die;
//test post_id
global $post;
echo '<pre>';
print_r($post->ID);
echo '</pre>';
die;
?>
Are these variables producing the correct data?
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.