Advanced Custom Fields
[resolved] Image URL not loading correctly (1 post)

  1. beth
    Posted 3 years ago #

    EDIT: This has been resolved. I had forgotten to set the field to "Image URL" and instead it was set to "Image Object." /EDIT

    Images are not loading. I am trying to display my image fields in my WordPress page template, and the image URL is returned incorrectly. This is only happening to image fields.

    This is what I'm using to load the image:

    <img src="<?php the_field('doctor_photo'); ?>">

    And this is what it's returning in the source code:

    <img src="35, , doctor1, , , http://www.mywebsite.com/wp-content/uploads/2012/10/doctor1.jpg, Array">

    (35 is the Id and doctor1 is the image title)

    Do you have any idea what's going wrong and how to fix it? I deactivated all other plugins and reverted to the Twenty Ten theme, and this issue is still happening.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.