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 trial

WordPress How to Make a Website with WordPress Custom Post Types and Fields in WordPress Custom Post Type Templates

My 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?

Here is a link to my site, still having the problem and can't figure it out. http://greyelephantdesign.com/my-art/

8 Answers

Yes. 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?

How 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

http://prntscr.com/575eeu

Can 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.

I 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

Are 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.

Nvm 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!

http://lazyincomestream.com/test/my-art/

Henk Rossouw
Henk Rossouw
20,020 Points

Hi, 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

I 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
Richard Walton
10,861 Points

could 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.