Home › Forums › Bug Reports › [5.0.6] Missing fields in get_fields($post_id); › Reply To: [5.0.6] Missing fields in get_fields($post_id);
Did another small test
while ( has_sub_field('blocks') ) :
print_r(get_sub_field('title'));
print_r(get_sub_field('content'));
endwhile;
Shows only the title.
While using
get_post_meta($post->ID)
Shows the content key in the array
[blocks_0_content] => Array
(
[0] => Bla bla bla
)
[_blocks_0_content] => Array
(
[0] => field_53fc61e4d4240
)
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.