Skip to content
This a class implementation of the code used in the wp.tuts+ tutorial http://wp.tutsplus.com/tutorials/creative-coding/how-to-use-radio-buttons-with-taxonomies/
PHP JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
js
Radio-Buttons-for-Taxonomies.php
readme.md

readme.md

##Description

This is a class implementation of the wp.tuts+ tutorial: http://wp.tutsplus.com/tutorials/creative-coding/how-to-use-radio-buttons-with-taxonomies/

To use it, just add to your functions.php and add the javascript file to your theme’s js folder (call it radiotax.js).

Better still, make make a plug-in out of it, including the javascript file., and being sure to point the wp_register_script to radiotax.js in your plug-in folder.

###The class properties are:

  • taxonomy: the taxonomy slug

  • taxonomy_metabox_id: the ID of the original taxonomy metabox

  • post type - the post type the metabox appears on

##Author:

Stephen Harris http://profiles.wordpress.org/stephenh1988/

Github: https://github.com/stephenh1988

You can’t perform that action at this time.