You Down With OOP? WordPress Class Based Coding: Part 2 – CPTs and Taxes

Hi again all, last week we took a look at starting to use Classes in your WordPress development.  As the uber smart John Havlik pointed out, that example didn’t really use any OOP (Object Oriented Programming) practices.  Rather it simply used the Class to namespace our functions.  Today we’ll look at registering a CPT (custom post […]

WordPress Class Based Coding: Part 1

As your WordPress projects get larger and more complicated it is important to keep your code clean and organized.  Using PHP Classes is perfect for this!  Let’s take a real-world example, in this situation we will need a custom <img /> tag because we will be doing some javascript / ajax-y stuff with it.  This […]