vim and the Ubuntu clipboard

Two of my friends have recently become vim fanatics. I played with vim a little before, but now I’ve made it my primary editor.

One thing that bugged me was that, by default, you are not able to copy text from vim into other applications in Ubuntu.

Read full post...

Sortable Taxonomy Columns

After finding out how to make sortable columns based on custom fields, several people have asked how they could sort posts by taxonomy terms. So here’s how to do it: Let’s presume we have a ‘product’post type, with a ‘color’taxonomy. Here’s some example code, just to get that out of the way. So we already [...]

Read full post...

Inserting a banner between posts

It’s pretty easy to inject content between posts if you have direct access to The Loop in the theme: $counter = 0;   while ( have_posts() ) : the_post();   if ( 1 == $counter ) echo ‘<div>Some banner</div>’;   $counter++;   // the_title() etc.   endwhile; If you want to do this without modifying [...]

Read full post...

Custom Sortable Columns

This summer I’ve been busy with my GSoC project, which involved making columns sortable on list-type screens in the WordPress administration area. Yesterday, that work was included in trunk.

That’s all very nice, you say, but how do I make sortable columns of my own?

Read full post...

Extending the Category Walker

Categories are better than tags! Why? Because a category can have child categories, and grand-child categories and so on. You can do all sorts of interesting things with them.
Say you want to display the categories related to a certain post, while maintaining the hierarchy.
You could try to painstakingly re-create the category tree, or

Read full post...