Skip to content

Instantly share code, notes, and snippets.

Created December 26, 2013 12:58
Show Gist options
  • Save anonymous/8133544 to your computer and use it in GitHub Desktop.
Save anonymous/8133544 to your computer and use it in GitHub Desktop.
This is the taxonomy-all.php file that should be placed inside piklist/parts/fields/
<div class="catseldiv">
<ul class="wp-tab-bar">
<li class="wp-tab-active"><a href="#"><?php _e('Camp Categories'); ?></a></li>
</ul>
<div class="wp-tab-panel">
<?php
require_once(WP_PLUGIN_DIR . '/mae-merchant/includes/tax-walker-class.php');
echo '<ul class="catsellist">';
if (!isset($postid)) {
$postid=0;
}
mae_terms_checklist($postid, array( 'taxonomy' => $catname, 'pl_field' => $field, 'pl_scope' => $scope, 'pl_prefix' => $prefix, 'selected_cats' => (array) $value, 'attclass' => ((isset($attributes['class']))?$attributes['class']:null), 'checked_ontop' => true) );
echo '</ul>';
?>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment