About these ads
Archive by Author

Cache posts in category/tag/taxonomy for better performing content blocks

If you ever needed to grab a bunch of posts from different categories or taxonomies into your theme to fill certain layout blocks with their respective content you’d likely ended up doing a bunch of WP_Query calls with the desired parameters. That’s all nice and works ok, but it causes some additional database queries for […]

About these ads
Read more
localtime.at

Lost in time(zones)? http://localtime.at can help

Working for a distributed company like Automattic is great, but with clients and co-workers spread across the globe I tend to get lost in timezone conversions. Sure there are some great tools like http://timeanddate.com and http://www.worldtimebuddy.com, but I needed something simple so this night I created http://localtime.at/, my own little timezone converter which takes a […]

Read more

Integrate Cool Applications with WordPress.com

Reblogged from WordPress.com News: We are happy to announce our new REST Application Programming Interface (API) that lets developers explore, interact, and create great new content with the vast community of sites on the WordPress.com network and, in the near future, Jetpack-enabled sites. The API gives developers access to posts and comments, as well as […]

Read more

Filter arrays of data by any field in the array/objects

I frequently need to grab a subset of data from an array. I just stumbled over the FilterIterator which provides a nice interface to do just this. Based on this class here is a implementation which lets you perform basic filtering. Here is an example: And here is the class that makes it happen.

Read more

Minimalistic progress bar for CLI based PHP scripts

I’m doing some CLI scripting here and there and as I’m still on the way to implement it the right way using a framework like wpcli, wpshell or the like for my scripts I sometimes like to put a little progress bar in my scripts to see how things are going and how much longer […]

Read more
Follow

Get every new post delivered to your Inbox.

Join 65 other followers