Article

CSS rotation in IE

Gravity Switch, the company I work for, launched their new website today. I was really pushing as much HTML5/CSS3 as possible in the new site[1]. I even used CSS3 rotation, but as it turned out, IE8 is our biggest browser, and my boss needed these images rotated there. I knew that IE had basic rotation, which does 90°, 180°, & 270° - but I needed 2° & 3°.

Enter the Matrix Filter!

Documentation here, with an example of 60° rotation here. Says it works from IE5.5+, & IE9 supports the CSS3 -ms-transform property. IE10 should just use transform. [source] Read more

Article

Meetup Widgets 2.0

Over the weekend I released Meetup Widgets 2.0. There are very few visible changes - the only thing a casual user would probably notice is a warning if the plugin can’t detect OAuth. [OAuth is only used if you’ve entered your key + secret. If you have, users can RSVP for events through your site. If you haven’t entered this info, users are redirected to meetup.com. So OAuth is not required for this plugin to function]

Changelog says…

* Change to using admin-ajax to process OAuth requests, rather than custom file.
* Change basic code structure to work with other (in-development) meetup plugins.
* Add warning message if the server does not have OAuth.
* use `wp_trim_words` rather than writing something custom
* pull apart a translated string somewhat

The really big changes are barely noticeable in this plugin. So why do it? I’ve developed another Meetup plugin that allows users to register & log in to your WordPress (or BuddyPress) site using their meetup.com login. I’m in the process of writing a separate post about it, & will update this one with a link.

Article

Using Chosen + Custom Meta Boxes

Lately I’ve been using Custom Meta Boxes for use with custom post types. CMB makes programmatically adding specific custom fields to your posts very simple - as simple as filling out an array. The following example adds a WYSIWYG ‘sidebar’ field to posts, pages, and events (a custom post type):

You do need to include the CMB code, though -but that’s also easy. Just change the path to the correct location.

These snippets above came from a theme’s functions.php, though CMB can also be used in plugins (as my next example). Perhaps the above would be better if it were moved into a must-use plugin - maybe that’ll be my next improvement. In any case, as awesome as the above is, it gets better: see how in the sidebar field I say 'type' => 'wysiwyg'? There are plenty of field types to choose from, but you can also very easily create your own.

Getting to the point: creating a taxonomy field using Chosen

Read more