Learning WordPress development taught me everything I know about PHP and I think that’s a great way to learn. WordPress makes so much of working with a content management system simple that you can zero in on one thing at a time to learn and let WordPress take care of the rest.
Working with Pods has given me an opportunity to learn more about working with arrays and objects than I ever knew before. I recently published a series of tutorials on Tuts+ that uses working with WordPress meta data as a way to learn how to work with PHP arrays and objects.
Mastering WordPress Meta Data: An Introduction To Meta Data
Mastering WordPress Meta Data: Understanding and Using Arrays
Mastering WordPress Meta Data: Working With Loops
Mastering WordPress Meta Data: Querying Posts and Users by Meta Data
New Trick!
One super useful trick I learned since finishing this series is a to wrap print_r()
in pre tags to make it more readable. I picked up the idea of adding a simple function called print_r2()
to any project you are working on from the docs page for print_r()
. Plus, I love a good Star Wars reference. Check it out:
<?php | |
function print_r2($val){ | |
echo '<pre>'; | |
print_r($val); | |
echo '</pre>'; | |
} | |
?> |
Need Help?
Do you need help applying what you’ve learned in these tutorials or any of my tutorials on this site, Tuts+, WPMU or WPBeginner?