Query Multiple Taxonomies: Version 1.5

Better titles

If you go to an URL like ?genre=jazz&instrument=guitar+piano, the page title that WP serves looks like this:

Jazz

Not very descriptive, is it? With QMT, it looks like this:

Genre: Jazz; Instrument: Guitar + Piano

Easy templating

It was painful seeing users modify the plugin PHP files, just to change from <h4> to <h3> or to add an id to some div. No more.

In this version, all the HTML is separated into distinct files, which can be overwritten by themes. Here’s a guide for doing that.

Remember the tutorial for customizing category walkers, which involved writing your own PHP class and a helper function on top? What if you could do it without writing any PHP at all?

<li class="term-item {{#is-selected}}current-term{{/is-selected}}">
	{{#is-selected}}
		<a class="remove-term" href="{{url}}" title="{{title}}">{{name}} (-)</a>
	{{/is-selected}}
	{{^is-selected}}
		<a class="add-term" href="{{url}}" title="{{title}}">{{name}} (+)</a>
	{{/is-selected}}
	{{#children}}
		<ul>
			{{{child-list}}}
		</ul>
	{{/children}}
</li>

This is the default Mustache template that is used by the plugin to generate a hierarchical list of terms.

I’m really excited about using Mustache in WordPress, as it neatly fills the gap between providing a settings page and making the user write PHP code.

Front-end Editor: Version 2.1

This version integrates Aloha Editor, a rising star on the wysiwyg editor scene. Unlike other established editors like TinyMCE, it makes the content editable inline, rather than using an iframe, which means that all the theme styles are preserved.

Read full post...

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...

Front-end Editor: Version 2.0

In previous versions, you entered editing mode by double-clicking on the element. This required all sorts of hacks to make single-clicking on the same element to work.

In the new version, there’s a slick overlay with an edit button that you only have to click once.

Read full post...

As my friend Jacob Gabrielson once put it, advocating Object-Oriented Programming is like advocating Pants-Oriented Clothing.

Steve Yegge

Because if you don’t stand up for the stuff you don’t like, when they come for the stuff you do like, you’ve already lost.

Neil Gaiman

Posts 2 Posts: Version 0.6

Nested Queries If, for each post in a loop, you find yourself doing a subquery using the ‘connected’query vars, I’ve got good news for you. Replace something like this: while ( have_posts() ) : the_post(); $connected_writers = get_posts( array( ‘post_type’=> ‘writer’, ‘nopaging’=> true, ‘connected_to’=> $post->ID, ‘suppress_filters’=> false ) );   foreach [...]

Read full post...