$null ) { $taxonomy_type = ''; $term_ID = ''; global $wpdb; $term_info = $wpdb->get_results("SELECT term_id, taxonomy FROM $wpdb->term_taxonomy WHERE term_taxonomy_id = $tt_id", ARRAY_A); if( !empty( $term_info[0]['term_id']) ) { $term_ID = $term_info[0]['term_id']; $taxonomy_type = $term_info[0]['taxonomy']; } else { continue; // we didn't find this taxonomy relationship } // var_dump($term_info); //$category = get_category_to_edit($cat_ID); $term_object = get_term( $term_ID, $taxonomy_type, OBJECT, 'edit'); if( is_wp_error($term_object) ) continue; $columns = powerpress_admin_taxonomyfeeds_columns(); $hidden = array(); if( $count % 2 == 0 ) echo ''; else echo ''; $edit_link = admin_url('admin.php?page=powerpress/powerpressadmin_taxonomyfeeds.php&action=powerpress-edittaxonomyfeed&term='. $term_ID .'&taxonomy='.$taxonomy_type.'&ttid='.$tt_id) ; $feed_title = $term_object->name; $url = get_term_feed_link($term_ID, $taxonomy_type, 'rss2'); $short_url = str_replace('http://', '', $url); $short_url = str_replace('www.', '', $short_url); if (strlen($short_url) > 35) $short_url = substr($short_url, 0, 32).'...'; foreach($columns as $column_name=>$column_display_name) { $class = "class=\"column-$column_name\""; //$short_url = ''; switch($column_name) { case 'feed-slug': { echo ""; }; break; case 'name': { echo ''; }; break; case 'url': { echo ""; }; break; case 'episode-count': { echo ""; }; break; case 'taxonomy': { echo ""; }; break; default: { }; break; } } echo "\n \n"; $count++; } ?>
{$term_object->slug}"; echo "'. esc_attr($feed_title).'
'; $actions = array(); $actions['edit'] = '' . __('Edit', 'powerpress') . ''; $actions['remove'] = "" . __('Remove', 'powerpress') . ""; $action_count = count($actions); $i = 0; echo '
'; foreach ( $actions as $action => $linkaction ) { ++$i; ( $i == $action_count ) ? $sep = '' : $sep = ' | '; echo ''.$linkaction.$sep .''; } echo '
'; echo '
$short_url"; echo '
'; if( defined('POWERPRESS_FEEDVALIDATOR_URL') ) { echo '' . __('Validate Feed', 'powerpress') . ''; } echo '
'; echo "
$episode_total"; echo "$taxonomy_type"; echo "

'', 'show_option_none'=>__('Select Term', 'powerpress'), 'orderby'=>'name', 'hide_empty'=>0, 'hierarchical'=>1, 'name'=>'term', 'id'=>'term_id', 'taxonomy'=>$current_taxonomy ) ); ?>