Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Viktor Fröberg

    (@viktorfroberg)

    Hi!
    It should work with image fields. Do you have a use case where it doesn’t?

    / Viktor

    Hello Viktor!

    Great plugin!! Thank you for helping us out with this.

    I do have a use case where its not working.
    This is screenshot of the Analytics http://dropbox.turn7.io/images/image1.png
    And this is the image upload http://dropbox.turn7.io/images/image2.png

    Thanks!
    Erick

    Plugin Author Viktor Fröberg

    (@viktorfroberg)

    Hi!
    How is the image field returned?
    The plugin will only make an img tag if the field returns an image object. If the fields is returned as a url it will be analysed as text.

    / Viktor

    Ynah

    (@ynahpantig)

    Hi Viktor,

    I have a question about this topic, you said that image fields should return objects to be recognized, but what if it’s returning the ID instead of the object or the URL? How does it get recognized? I’m having an issue with the plugin recognizing uploaded images currently. But we’re using IDs instead of objects. Thank you.

    Plugin Author Viktor Fröberg

    (@viktorfroberg)

    Hi!
    A field returning an ID will be seen as a number by the plugin.
    I’d you to change the field return type to object. If you just need the ID to lets say fetch a specific thumbnail size or something you could just do the following:

    $image_obj = get_field('image');
    $image_id = $image_obj['ID'];

    / Viktor

    Ynah

    (@ynahpantig)

    Hi Viktor,

    That to me sounds like an additional line of code that’s not necessary since ACF can return the image ID. No worries, we figured out what we can do. Thanks for your prompt reply.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Image Field Detection’ is closed to new replies.