Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress

Custom Fields plugin - Only images not showing up

EDITED

I was following the tutorial -> Build A Custom Wordpress Theme

I have installed following plugins

  • Custom Post Types
  • Custom Fields

So i added Testimonial on the page. (works great with text) But if i change one custom field to image...IT DOES NOT SHOW UP :/

Seems like you have to sleep..

and you will discover that when you open Custom Fields plugin. Navigate to custom field you created and see for options. You can find a row with possible options.:

Return Value: Image Object / Image URL / Image ID

I had previously checked Image object.... But what i needed was Image URL

2 Answers

POST WAS EDITED, SO NEW PROBLEM... :D

Matt Campbell
Matt Campbell
9,767 Points

kristjan reinsberg , what was your solution to the problem in case others have an issue, they can see this for reference and help.

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Couple of possibilities:

  1. Your field is setup to be an image
  2. In your template file you're using the correct the_field('image') parameter
  3. Does the file actually upload (inside your media section)?