WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. lsterling03
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/advanced-custom-fields/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.