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 trialMeghan Garrity
3,203 PointsMy images do not show up on the my art page? any idea what could be wrong?
Not sure what code I should be looking at?
8 Answers
Alexander Gill
607 PointsYes. http://lazyincomestream.com/test/my-art/
Only the title shows up. The image, description, or price will not show. I believe it is a plugin problem maybe?
What do you think?
Alexander Gill
607 PointsHow would I look at the plugin?How do I look at the plugins? I downloaded both the plugins discussed in the video and activated them. I don't really understand the coding used to create them yet though. (See image below)
Advanced Custom Fields Custom Post Type UI
Michael Davis
10,035 PointsCan you post a link to the affected page?
The place to start is by using the developer tools for whichever browser you use to inspect the element. Look closely at the link being generated here and see if it's broken. Most likely this will give you the necessary clues to why they're not showing.
Meghan Geraghty
Courses Plus Student 451 PointsI looked at the code and there is no URL link for the pictures, its missing and I have no idea how to fix that in the html code
Michael Davis
10,035 PointsAre you using a plugin to generate the content of the art page? I would look at that for sure. I looked at the html being output to make the page and there are no references to images at all.
Alexander Gill
607 PointsNvm it's working now. I downloaded the project files from the next plugin video and upladed them to the server refreshed the page and now it looks good. Maybe something was wrong in the code I uploaded earlier. Anywho, thanks again guys!
Henk Rossouw
20,020 PointsHi, for reference of the plugin used:<br /> $image = get_field('image'); - get the image contents<br /> echo $image['url']; - get and echo the image url
Phouthalang Pygnasak
4,795 PointsI am having the same problem with image not displaying. When trying to validate image delivery, its not showing up as under image resources.
In addition, my html tag is showing
<p> <img src alt"Example image of Art 1"> </p>
From what I can notice, its missing the image url from the <img src=""> tag. Why is this happening? All of the .php files provided have not been changed...
<div class="entry-content">
<p><img src="<?php the_field('image'); ?>" alt="Example image of <?php the_title(); ?>"></p>
<p><?php the_field('description'); ?></p>
</div><!-- .entry-content -->
Richard Walton
10,861 Pointscould someone respond to this un-answered question? seems like a lot of people have been having problems with this tutorial not working? I deactivated both plugins and reactivated them and the fixed the link to the single.php but did not fix the images not appearing? I used chrome dev tool and it only shows the size of the image. Link to the page is http://www.richwaltonart.com/my-art/ I noticed in the video zacs url was just the post id number, mine is set up as: date and title. could that make difference? I am continuing ti play around, but its frustrating, nobody seems to have an answer and i would like to learn and keep moving on.
Meghan Geraghty
Courses Plus Student 451 PointsMeghan Geraghty
Courses Plus Student 451 PointsHere is a link to my site, still having the problem and can't figure it out. http://greyelephantdesign.com/my-art/