Skip to content

Instantly share code, notes, and snippets.

Avatar
👑
Getting it done

Helen Hou-Sandi helen

👑
Getting it done
View GitHub Profile
@helen
helen / wp-chosen-tax-metabox.php
Last active May 1, 2019
Use Chosen for a replacement WordPress taxonomy metabox
View wp-chosen-tax-metabox.php
<?php
/**
* WordPress Chosen Taxonomy Metabox
* Author: Helen Hou-Sandi
*
* Use Chosen for a replacement taxonomy metabox in WordPress
* Useful for taxonomies that aren't changed much on the fly and are
* non-hierarchical in nature, as Chosen is for flat selection only.
* You can always use the taxonomy admin screen to add/edit taxonomy terms.
* Categories need slightly different treatment from the rest in order to