Support

Account

Home Forums Front-end Issues Display all fields type (Array to string conversion problem) Reply To: Display all fields type (Array to string conversion problem)

  • unless every field in an image field then you’ll need to check the type of each field and proceed accordingly to use the correct method to show what you’re looking for.

    Not all fields will have $field[‘value’][‘url’]

    and print $field[‘value’][‘sizes’] is an array, not really sure about print $field[‘value’][‘0’];

    If you just trying to see what’s in them try print_r() like your commented out code at the top.