Congratulations on taking your first steps towards learning PHP for WordPress! I'm Rachel McCollin, and from all of us here at Envato Tuts+, thanks for watching!
1.Introduction1 lesson, 00:58
2.WordPress and PHP 2 lessons, 20:34
3.First Steps With PHP3 lessons, 28:09
4.Coding in PHP6 lessons, 1:06:20
5.Practical Project: A Custom Archive Page2 lessons, 21:07
6.Conclusion1 lesson, 03:28
Hello, and welcome back to this tuts+ course on learning PHP for WordPress. In this course, you've learned everything you need to know to get started coding PHP, and your WordPress themes and templates. So let's recap on what you've learned. So we started off by looking at what PHP is and what it does. So we identified the fact that PHP is a server side language, as against a client side language like HTML. We then use an example of this page on my website, where we looked at the markup that's generated by WordPress and we looked at the template file that generates that markup. We then moved on to looking at the coding standards in detail. So I talked you through some template files within my theme and showed you how they adhere to the coding standards. And I also showed you some of my theme files and how they use things like indentation, and braces, and line spacing, and so forth. Once we've done that, we went on to some practical work. So we set up a demo page template, and I showed you how to add PHP to your file and how to add comments to it and template tags. And within that file I showed you how to code functions with braces added correctly and spacing, as well as how to use curly braces to enclose conditional functions. In the next part, we looked at HTML and how to add HTML to your PHP files. And I showed you two methods of doing that, both of which you can see here. We then moved on to some more specific aspects of coding PHP in WordPress. So firstly, you learned about commenting. And you learned the different formats you can use for commenting in PHP and why you need to use them. Having done that, we started writing some functions. So we wrote a basic function and a pluggable function. And then we learned how to fire those functions by hooking them to action and filter hooks. We then looked at the loop. So we looked at the standard loop and how that's coded. And then we looked at a nonstandard loop using the get_pages function. And we created a for each loop and echoed out information relating to each page in a site. You then learned about variables in PHP and how you can use them to store simple text, or the results of a function, or more complex data. And then finally, we looked at the echo function. And you learned how you can use echo to echo out not only simple text, but also the results of certain functions which fetch data from the database. And we also had a brief look at internationalization and how you use the _e function to internationalize some static text. We put together a lot of what we've learn in the course in a practical project. So we created a theme template file using a custom post type and custom taxonomy that had already been registered. And we used a custom loop with some conditional tags and some variables to display a set of books by series. So that should have got you started with the core elements of PHP you'll need to know in order to write your own themes and plugins. If this course has whetted your appetite for learning more about PHP, you can also follow another tuts+ course, which specifically looks at PHP rather than PHP for WordPress. And this will teach you some more advanced PHP techniques that you can implement in your WordPress files. I hope you found this course useful. Thanks for watching.