Resorting a WordPress Query Using usort

Resorting a WordPress Query Using usort

Posted by

WordPress includes some great ways to order your post, page or custom content as it is stored in the database.  But, what if we want to change the content a little bit and then resort it?  Let’s say we have a staff post type where the person’s name is in the post title.  Now, we want to build a directory of employees where they are ordered by last name. We can do something like this with the usort, explode and comparison functions in PHP. (more…)

Read More

Dynamic WordPress Content With Dynamic Widgets

Dynamic WordPress Content With Dynamic Widgets

Posted by

So, the other day I was in the early stages of coding a client’s WordPress theme with conditional elements for widget areas.  The theme would display various content based on conditions like authenticated users, the front page, etc.  This particular client works time and materials, yeah for me, so time is money to them.  While considering the various ways to approach handling this it occurred to me that someone may have a widget for this.   (more…)

Read More

Stop Making Excuses and Start Using Sass

Stop Making Excuses and Start Using Sass

Posted by

Like most web folk, I typically stay busy at work with projects and such.  Integrating new technologies into my workflow can be near impossible at times. And, getting rolling with something new or switching up my workflow often becomes a black hole before I can enjoy the fruits of my labor.  I am happy to say Sass surprised me in a good way. (more…)

Read More