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

General Discussion

Henrik Christensen
seal-mask
.a{fill-rule:evenodd;}techdegree
Henrik Christensen
Python Web Development Techdegree Student 38,322 Points

PHP VS Wordpress

Hi,

I'm currently doing the PHP track and now I start wondering what's the difference between the php track and wordpress?

Is php for a generel back-end developing and wordpress is for people who has his/hers focus on the website dev?

3 Answers

Hi Henrik Christensen

That is a great question

In my opinion ,

I am a Former Plugin Developer in Wordpress.org Community

PHP was the langauge that created a Wordpress but in this treehouse php track and wordpress track were focus a bit different in their ways.

As far as I know ,

PHP Track were focus on learning from the ground up ( basic ) of php , the object oriented programming , collections , error handling which is a great skilled to learn

Wordpress Track were focus on using Wordpress CMS ( Content Management System ) and also some course doesn't even require any php programming skilled at all.

and to write wordpress plugin the coding style involved were a bit different that normal PHP program . You usually need to actions , filter and hooks on wordpress cms which yes . It require many basic to advance php skilled to do that.

You can take a look how wordpress plugin written in this wordpress website :

https://developer.wordpress.org/plugins/

In conclusion ,

You say it right , For Backend Developing and Programming , We should learn PHP

and For Web Design business , it can save a tons of time not reinvent the wheel by using the wordpress cms

Just in my opinion , I would go for a php first because it will make me understand a lot more thing.

but many people , they would go for a wordpress first so they can easily make their own website and stuff.

Best way to is to go both at the same time :D

Thanks

Yes :D

Ran ShemTov
Ran ShemTov
14,148 Points

Wordpress has an inline HTML within the php, in order to pre-proccess HTML. That means, a page consists of a PHP and HTML code mixed together.

This approach is long gone in most of the industry and is used mainly by CMS like wordpress and others. For web applications, you'd normally use PHP to create an API, which has no views, OR you'd use a template engine (like blade with Laravel, check out the Laravel course here to see what I mean) to render HTML pages.

I'd recommand going for the simple PHP tracks, as the tools you get will have higher value for more than just WordPress work.