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

Isaac Russell
Isaac Russell
12,091 Points

How to build a Wordpress theme--Content(images) not showing on "Work" page

I have been following along all the videos and coding locally. I've just finished the video "Convert Custom Post Type The site appears to be working correctly up to the point Convert Custom Post Type Listing Template. And my problem is that the background images and colors are not showing. But everything else is working. At point 2:12 in the video it says "if you have uploaded the content correctly..."

I don't think I did this earlier step so what I have done is gone to the admin/work added the images uploaded the images to the "Homepage Slider image" Check marked "Display on Homepage Slider. But they don't show up as at the end of this video.

Please advise

3 Answers

Isaac Russell
Isaac Russell
12,091 Points

Zac, Thanks for your response I really appreciate it! I found my errors. One was that used a hyphen instead of an underscore in the code for background_color. And the other was that in the admin area "Custom Fields" I added an extra word on the end of "homepage_slider_image" once I made those adjustments. Everything seems to be working properly.

Thanks again Zac

Zac Gordon
Zac Gordon
Treehouse Guest Teacher

Great! Glad you worked it out :)

Julian Price
Julian Price
11,760 Points

I think you will have go past to other tutorials. I don't think it's the best tut because it's jump in the various segments. I personally feel that the only way for me to wrap around wordpress is to think in the context of the single page, post or post type first before you remotely think about the home page. or other resource pages that loop to a page.

Team Treehouse really should step up on the Wordpress segments in the context of thinking of complex fields, metaboxes and relational custom post types. They are just lacking in that department and further more encourage of what should be in theme vs plugin.

I have not seen any tut discussion the importance of the develop tools to theme check or plugin check to ensure compabiltty and to debug.

Zac Gordon
Zac Gordon
Treehouse Guest Teacher

Hey Julian Price! I'd love to here your thoughts on how you would have organized the How to Build a WordPress Theme Course differently? I tried to take the approach of dealing with pages and posts before custom post types, but I agree that it can be tough to wrap your head around this stuff as a first time theme builder and I'd love to hear your thoughts on making it super clear for people. Thanks!

Julian Price
Julian Price
11,760 Points

Zac Gordon it is hard to wrap your head around the how wordpress works. I can only only be able to understand it in in the context of thinking is the single-details page (post/page/custom post)) & work backwards. It even gets more complicated when you have several custom taxonomies and and relational custom post types.

Hope no offense taking about my comment: I believe that teamtreehouse should produce more material on utilizing wordpress. I am also EXCITED to the see the NEW Wordpress Project on the RoadMap: How to Make a Website with WordPress.

In closing here would be some my suggestions/topics:

  1. Topics on How to Leverage a Starter Theme, Framework and/or Default Theme & Plugin either extending as base, via child theme and HOOKS.
  2. How too's on Creating: a) Basic Plugin for your Custom Posts Type instead of Theme b) Useful Snippets (still a question mark for me? guess its about actions/filters) c)MAKE USE OF WP: Template Tags and WP Generated CSS classes/ids: i.e Saw this on wptuts which I understand you are a fan of Rachel: http://wp.tutsplus.com/tutorials/theme-development/creating-a-wordpress-theme-from-static-html-preparing-the-markup/ http://wp.tutsplus.com/tutorials/creative-coding/working-with-classes-and-ids-generated-by-wordpress/ d) Various APIs & how to leverage the CORE for your Project and available Resources.
  3. Wish List: Learning how to use Plugins: Buddypress, WooCommerce and any other useful plugins in your Website/Projects with hooking into existing functions.
  4. Is that Premium Plugin worth it: i.e Gravity Forms and I know you have discussed it & everyone RAVES about it. But still today have not seen any tutorial that demonstrates its FULL POTENTIAL besides making a Contact Form (Whoopie Doo).

AND FINALLY;

  1. THE WORDPRESS DEVELOPMENT ESSENTIALS: Wordpress Development Tools & Standards, Unit Testing, Theme/Plugin Checking & Learning to Debug/trouble shoot Deprecated Code.

Thats about all the suggestions I have at this point.

Zac Gordon
Zac Gordon
Treehouse Guest Teacher

Hi Julian, thanks for the feedback! I'll take it all into consideration as I move forward with content planning. I'm curious if you've worked through our How to Build a Theme Project or How to Build a Plugin Projects? I'd be interested in your feedback on those. Thanks again!!! (and don't worry, no offense taken! everyone learns differently and has good ideas about the best approach to learning WP :) )

Julian Price
Julian Price
11,760 Points

Zac Gordon I am so ADHD I have jumped over of the place LOL's:) I am here to learn for my personal Real Estate Business Needs so I am probably a little different than most of your students that are interested in a Web Design & Development careers or Theme/Plugin Sales.

I have been following you guys for little over year now on your blog because I was working on site than to launch. I had seen another tut some where else on using BootStrap or Foundation: I spent 3 months taking time to Code the HTML /CSS than I got to bringing it over to WordPress. You going to LAUGH: BOY that's a complete different story especially for someone that few months prior did not know HTML/CSS --now i got to learn PHP/ Functions WHOA. At the same time arguments about whats the best Practices Plugins vs Themes. You get the drift.

I filed for my REAL ESTATE FIRMS licenses in 3/1/13 why I was waiting on the notification. Still trying to learn wordpress. I finally gave up once i got the notification.

Purchased ThemeForest Theme: First Theme was GREAT...THEME AUTHOR provided WOW customer Support but so many updates with bugs seemed to be two or three times a week. It was minimial theme and today probably was the Best Solution with out all the Bells & Whistles. 2. But no I saw another theme that has that cool Layout Builder. WOW this will be great I can rapidly launch all these sites and a Child Theme is included but guess what FUNCTIONS has to be EDITED in the PARENT THEME which gets overwritten when updated. Developer set Custom Post Types rewrites to false so you ugly permalinks.but for the launch of site and announcement went with. However extreme learning curve in it self to set up the options, features, navigate the meta boxes after metaboxes of options not such great Support. 3. So I have purchased 2 other theme since than for different websites stages or intentions for various pages/purposes for Neighborhood Directorys.The theme I purchase is well organized file structure to navigate but the developer has gone MIA (3 Months) and has not provided updates--even the community of users have created a support group but some much again is tied to the theme. that Google Maps Api is not working right and so on. Thats just the themes: we will not discuss the plugins, other membership sites & various tutorial sites and constant GOOGLING for the answers only to find thin content. WASTED MONEY + WASTED TIME = VERY ADHD to the 5th Level :)

Than I decidedI had to go back to the driving board and arrived here to give you a try. YOU GUYS at TeamTreeHouse have by FAR been the best INVESTMENT I have made.

SO THE SHORT ANSWER YES I HAVE WATCHED but not nesscarily gone completely in creating myself because I HAVE BEEN sessions on my Laptop and My iPad at the same time from different series to see whats relevant to me for my project at this time.

I now got to back track to implement for what I am trying to accomplish but most of the time: Oh a Butterfly:) Recently I was thinking maybe Rails Track would be better.


In closing Zac and I have included, Nick Pettit & Guil Hernandez : How do you scale down complex website development into manageable pieces so it can be delivered in stages when everything has relatable content: in my example a Real Estate Firm Website

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi Isaac Russell did you add in the content talked about in this video?

http://teamtreehouse.com/library/how-to-build-a-wordpress-theme/content-strategy-with-wordpress/adding-custom-content-to-the-site

If so, what does WP output when you do something like the_field('background_color')?