Wordpress - Training - PHP for WordPress
So, you're developing in WordPress? Congratulations!
Some tips and tricks to using PHP when developing themes and plugins for WordPress.
Thankfully, unlike CommonSpot, WordPress is based in PHP - so the skills you know (or will learn soon!) will work when developing for WordPress, which is used for all new UWM websites.
Here are some resources that can be helpful when developing for WordPress specifically.
WordPress has a lot of its own functions available that will be really helpful when you're developing a theme or plugin. The best place to find most of these is the WordPress Codex, located at: http://codex.wordpress.org/.
The Codex is large, though, and sometimes you just need to know how to output the content of a post. Thankfully, the Internet has come to our rescue again and provided us with some cheat sheets for the most commonly used WordPress functions.
- VirtualBlend: http://virtualblend.com/cheatsheet/ (oddly designed, but very useful)
- DBS WordPress Reference: https://www.dbswebsite.com/design/wordpress-reference/v4/
- Printable Cheat Sheet (Download: wordpress-cheat-sheet.pdf)
Some things in WordPress, like creating a theme, a custom post type, a custom taxonomy, menus, queries, etc... can be cumbersome to write. The Codex has tons of reference material, but sometimes you just want to be walked through how to create them.
GenerateWP is a website that has generators for nearly anything you want to do in WordPress. I use it frequently for generating Custom Post Types, creating WP_Query objects, or creating a Plugin readme.
You can find out more about the tool and what it offers here: http://generatewp.com/generator/
If you are someone who learns by watching and doing, rather than reading about something - these videos are for you.
UWM has a Lynda.com subscription which all students and staff are able to access. You can login to Lynda.com by going to the following URL:
Once you're logged in, take a look at these videos:
- DRY Development
- Template Hierarchy
- Advanced Custom Fields
- Enqueueing Styles and Scripts
- Custom Post Types / Taxonomies
There's even more - just search "WordPress" when logged in to Lynda.