Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKristjan Reinsberg
50,960 PointsCustom 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 :/
2 Answers
Kristjan Reinsberg
50,960 PointsPOST WAS EDITED, SO NEW PROBLEM... :D
Matt Campbell
9,767 Pointskristjan reinsberg , what was your solution to the problem in case others have an issue, they can see this for reference and help.
Zac Gordon
Treehouse Guest TeacherCouple of possibilities:
- Your field is setup to be an image
- In your template file you're using the correct the_field('image') parameter
- Does the file actually upload (inside your media section)?
Kristjan Reinsberg
50,960 PointsKristjan Reinsberg
50,960 PointsSeems 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