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

  • Hi John, thanks for the reply.

    It returns a field for a post which I can’t find.

    Your question as to why I am doing it is very valid. I am setting a post ID (for a different post to the current one) as a variable and due to a bug in my code, it got set to ‘new_data’ instead of the proper ID. So I wouldn’t have known about it if I hadn’t written bad code

    It is totally avoidable, it is just irritating me as to why it is happening.