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.
Posts by: Rainey
Chrome and Firefox have received some decent updates in the last month. Mobile debugging and mobile inspect capabilities are getting the attention they need and deserve.
Icon fonts are down right amazing. Why? Because you can change the color, opacity, size, background shadow, gradients and more without opening a single file in Photoshop.
When laying out dynamic elements on a page, it can be handy to insert an element before or after every nth element. A simple way to achieve this is using the Modulus Arithmetic Operator. Modulus basically returns the remainder of a number divided by another. So, for example:
It is official the WordPress 3.8 release, “Parker” in honor of Charlie Parker bebop innovator, is here! This release includes some pretty cool features like:
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.
Lately I have been looking into various Sass mixin libraries and mixin snippets. These are among the best I have found.
Flat website design is all the rage right now placing more emphasis on key graphics, photos and other media. Here are 6 designs to fuel you desire for your new flat website creations.
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.
WordPress categories are a nice way to group and organize website/blog posts. But, what if you want to display more than one category? Well, this is a super simple way to do this and without code. This can be done by combining categories in the URL. Let’s try it out.