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

Linards Berzins
PLUS
Linards Berzins
Courses Plus Student 13,480 Points

PHP Application with Wordpress Theme

Hi,

Im having a project in mind, but not sure how to approach the development process. Basically, I would like to build a Wordpress theme from scratch which is covered by Zac Gordon, at the same time building a PHP Application covered by Randy Hoyt.

Can anybody share thoughts on how you would approach the projext, where would you mix both together?

Many thanks

Linards

Colin Marshall
Colin Marshall
32,861 Points

It might help if you tell us a little bit more about the PHP application and what you need it to do.

Linards Berzins
Linards Berzins
Courses Plus Student 13,480 Points

Cheers, I would like to create the similar online shop as with Shirts 4 Mike. Ideally with the same funcionality. Was thinking, perhaps I have to build the shop first and then create the wordpress theme.

thanks

3 Answers

Matt Campbell
Matt Campbell
9,767 Points

Woocommerce...that is all.

Seriously though, it is the best way to go. It takes a shit load of effort and work to get to grips with it but if you're wanting complete control over absolutely everything and to be totally unrestricted in how you build your store, it's the best I've found and I've torn apart all the big named platforms out there.

Wordpress is PHP. All WordPress does is handle all those annoying time consuming bits of code that we learn in the PHP course. The logging in to the database(wp-config file), the secure login to the site (wp-login file), the backend that you add and save stuff to the database (wp-admin collection of files).

You'll need to learn the WordPress language. Complete Zac's videos, they're awesome and then just treat it as the CMS part of your PHP site.

I build a lot of stuff in WordPress and there's as many pages without loops as with loops. You don't have to write a loop on every page. You can think of it as writing your site and then using WordPress as the vehicle to get data to the pages. However, don't think about writing a static site and then trying to shoehorn WordPress into it.WordPress needs to be at the core of your site and a lot of planning needs to go into how you're going to move the data around your site and how it's going to be managed.

Perhaps a better alternative would be to go and grab an ecommerce theme, there's some epic premium themes out there. You can also get away with just turning on WooCommerce and then it just requires some tweaks to get it looking how you want.

Hope that helps!

Colin Marshall
Colin Marshall
32,861 Points

I was going to suggest something similar but I'm glad I didn't take the time to type it out because you definitely explained it much better than I would have. Cheers!

Linards Berzins
PLUS
Linards Berzins
Courses Plus Student 13,480 Points

Thank you Matthew.

I could have not ask for better explanation to my question. I already started with a static HTML, anyhow reading your thoughts it decided to try to do it in WP.

Many thanks for your effort Matthew and Colin.

Matt Campbell
Matt Campbell
9,767 Points

No problem Linards Berzins - glad to be of assistance!