How can I merge this function(s) that inserts terms to a custom taxonomy with this other that adds a custom taxonomy filter?

So, you want this? (source: mikeschinkel.com) Alright, here ya go: <?php /* Plugin name: Static Content */ if (!class_exists(‘YourSite_StaticContent’)) { class YourSite_StaticContent { static function on_load() { add_action(‘init’,array(__CLASS__,’init’)); add_filter(‘manage_static_content_posts_columns’, array(__CLASS__,’manage_static_content_posts_columns’)); add_filter(‘manage_posts_custom_column’, array(__CLASS__,’manage_posts_custom_column’),10,2); add_action(‘restrict_manage_posts’, array(__CLASS__,’restrict_manage_posts’)); add_filter(‘parse_query’, array(__CLASS__,’parse_query’)); } static function init() { register_post_type(‘static_content’,array( ‘labels’ => array( ‘name’ => __( ‘Static Content’ ), ‘singular_name’ => __( ‘Static … Read more

Listing all slugs?

Hi @Wordpressor: Sounds pretty simple so I’m concerned I misunderstand, but in case I did understand correctly here’s a function; just pass the taxonomy to it like this: echo get_taxonomy_list_html(‘category’): function get_taxonomy_list_html($taxonomy) { $term_links = array(); foreach(get_terms($taxonomy) as $term) { if (!empty($term->slug) && $term->count>0) { $link = get_term_link($term,$taxonomy); $term_links[] = “[ <a href=”https://wordpress.stackexchange.com/questions/8326/{$link}”>{$term->name}</a> ({$term->count}) ]”; … Read more

How to make a pulldown menu display custom meta terms in a theme?

Still not sure what exactly what you aiming for, but having come back to this question i wanted to at least try to offer a solution. So try this out, and see if that’s the kind of thing you had in mind with the dropdown… ? add_action( ‘add_meta_boxes’, ‘add_inventory_metaboxes’ ); function add_inventory_metaboxes() { add_meta_box(‘inventory_information’, ‘Inventory … Read more