Support

Account

Home Forums Front-end Issues get_field() with an id of new_data Reply To: get_field() with an id of new_data

  • What results is it returning? var_dump(get_field('data', 'new_data'));

    Since ‘new_data’ is being set as the post ID then from what I can figure out that is causing ACF to consider it a values that’s stored in the options table and getting the value for ‘new_data_data’.

    The question is, why are you using ‘new_data’ as the post id in get_field()?