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 WordPress Theme Development Custom Post Type Templates in WordPress The Portfolio Single Page

shareyourpeace
shareyourpeace
3,244 Points

At point 5:10 in the video, the browser opens to the orange-cube but ALL the images are visible.

The Url is: localhost:8888/treehouse-portfolio/portfolio/orange-cube/ The content in the browser shows the 'title' Orange Cube, filler text for 'description' and ALL of the images.

My real questions are below.
I tried to outline this so it is not confusing. It looks long but it is rather specific.

When at my url: http://localhost:8888/projectWordPressThemeDev2/portfolio/ I see the 'title' the 'description' and the 'image' and also the same image in the right bottom which is the 'featured image'

Shouldn't ALL of my images show up on this page ?

Also, when I click on this ONE image it opens to this sort of path in the url which is just the image. http://localhost:8888/projectWordPressThemeDev2/wp-content/uploads/2014/10/image.jpgmay tell you This may explain the problem I describe below.

Can someone please explain the structure involved. Note the Uppercase Portfolio and lowercase portfolio below

The steps I followed from the video. We create a custom-post-type named Portfolio. This shows up in the dashboard. Portfolio

portfolio add portfolio piece

If I click on

portfolio It opens a window. The tops line says, portfolio add new portfolio piece Below this are 8 different 'pieces' in this portfolio. My portfolio consists of 8 different pieces - 8 images that i inserted.

If I click on each one of the 'pieces' the top says, Edit. If I click 'edit' I see the title, description and image.

This is where I get confused. This is where I have errors.

From THIS Edit window, I click on 'view portfolio piece' It OPENS in the browser. I ONLY see the 'title' and 'description' of the portfolio piece.
NO image.

If I do what Zac does.... From Dashboard > frontend-homepage > click menu > portfolio

It opens the page. I see the following; the words

portfolio test if this template works One Image does appear here Below this in the right corner is the same image (featured image)

QUESTIONS I think that 'this' page above http://localhost:8888/projectWordPressThemeDev2/portfolio/ should have ALL of my 'portfolio pieces' - the 8 different images.

What php code is missing ? Or what is wrong in my structure from the dashboard ?

I have been following this exactly. I appreciate the explanation. Thanks.