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

PHP How to Build a WordPress Theme Converting Static HTML into WordPress Templates Convert Custom Post Type Listing Template

Don Shipley
Don Shipley
19,488 Points

Convert Custom Post Type Listing Template

work.php does not display the images as in the video. Where are we to upload the images? Also I am confused with the link in work.php <?php the_field( 'homepage_slider_image' ); ?> does this have to do with the flexslider? Not sure how to tell flexslider where to locate the images.

It's always helpful to post the link of the lesson where you have the problem.

Don Shipley
Don Shipley
19,488 Points

http://teamtreehouse.com/library/how-to-build-a-wordpress-theme/preparing-to-code-wordpress-templates/linking-css-2 This one has to do with the flexslider. Have to find the other link. .

I don't remember quite well but the_field('homepage_slider_image') returns what? The url for the image right?

7 Answers

Yes sometimes it happens. They are not perfect but they are very good. I really enjoyed Zac's wordpress courses. But if you want to build nice themes you should have good knowledge of HTML CSS JS PHP and Databases. If you are more a designer guy you might want to consider teaming up with a more back end guy to deliver really nice themes.

I will soon open a thread in treehouse about this. Support already gave me authorization for this type of coworking.

Don Shipley
Don Shipley
19,488 Points

Problem should have shown how to display the images prior to the video. When you do not show how to do something as you are teaching and than show how to use the css to display the images yet no images there mmmm var_dump Still new to php trying to learn it so I can build wordpress themes. Did not think of using the var_dump when I am following the instructors code.

Thank you for your reply and when I was using you did not mean you meant for when a instructor is teaching you how. I have noticed a lot of this in the tracks which I have watched. I have also noticed some test question asked before you are taught how.

asgerbruun
PLUS
asgerbruun
Courses Plus Student 5,291 Points

Hi Don Shipley – how did you solve the issue of the images not showing up. I got the same problem as you.

I agree with you that the pace is a bit fast in places.

Thanks, A

No code showed up. Please take a look into this sentence near the "Post Answer" blue button when you want to submit an answer here in the forum: "Reference this Markdown Cheatsheet for syntax examples for formatting your post." So you can write code samples like this:

<?php
echo "test";
?>

Ok.. so problem solved?

Anyway you should get the habbit of using var_dump($variable); to better understand the objects you are working with. When you add images to a post or a custom post you can also try to var_dump all the post to understand where things are stored.

Don Shipley
Don Shipley
19,488 Points

Sorry about yesterday Ivo, Zac's course is very good. I get frustrated for I am typing the code as I follow along with the course. Using copy and paste is hard to follow when using copy and paste, switching to fast to see what is going on. Yes there is a pause and have to rewind go forward rewind and try to stop at the right spot since it changes in about 1/10 sec. I minimize my screen so the course in on the left and my text editor on the right. When trying to follow along and the instructors code goes off his screen it is very hard to find where to place the code. In which I was speaking of when his or her screen shows something that mine does not I go back through the videos trying to find what I missed, in this case it was not covered yet.Also some of the problems is that I had to correct a work project which was not mentioned to do in the video. Figured it all out so far.

Thank you for the time your spent trying to help me.

Treehouse is great and Yes I can tell how good the instructors are...

sean z
sean z
667 Points

http://teamtreehouse.com/library/how-to-build-a-wordpress-theme/converting-static-html-into-wordpress-templates/convert-custom-post-type-listing-template - working thru this step...

same problem as Don Shipley describes in the original post here. I figured out where to upload the homepage images (from wp-theme-development-stage-01.zip) in the wp admin interface, my flexslider js and css are in the source for the work page, images don't show up in the .grid_6.spotlight.project div, img src is empty.