Support

Account

Home Forums General Issues Post Object fields return array or object

Helping

Post Object fields return array or object

  • I’ve got a field group with two Post Object fields but when trying to return the values within a Post, one of the fields returns an array whilst the other returns an object.

    How can I return the ID key for both field types?

    Is the Post Type the cause of this? One of the fields is Contact Form 7 Post Type and the other is from Map List Pro.

  • Do you have one of the fields as allowing multiple and the other not. When you set an object field to allow multiple it returns an array.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Post Object fields return array or object’ is closed to new replies.