You can categorise downloads using these categories. You can then show groups of downloads using the category tags or a dedicated download page (see documentation). Please note, deleting a category also deletes it\'s child categories.

',"wp-download_monitor"); ?> categories[$category]) { $children = $download_taxonomies->categories[$category]->get_decendents(); } if (($parent=='0' || $parent>0) AND $parent!==$category AND !in_array($parent, $children)) $parent_q = ", parent='$parent'"; if ($category && is_numeric($category) && $category>0) { $query = sprintf("UPDATE $wp_dlm_db_taxonomies SET name='%s' $parent_q WHERE id='%s' AND taxonomy = 'category';", $wpdb->escape( $name ), $wpdb->escape( $category ), $wpdb->escape( $category )); $wpdb->query($query); //echo $query; echo '

'.__('Category updated',"wp-download_monitor").'

'; } } } elseif (isset($_POST['add_cat'])) { $name = $_POST['cat_name']; if (!empty($name)) { $parent = $_POST['cat_parent']; if (!$parent) $parent=0; $query_ins = sprintf("INSERT INTO %s (name, parent, taxonomy) VALUES ('%s','%s','category')", $wpdb->escape( $wp_dlm_db_taxonomies ), $wpdb->escape( $name ), $wpdb->escape( $parent )); $wpdb->query($query_ins); wp_dlm_clear_cached_stuff(); if ($wpdb->insert_id>0) echo '

'.__('Category added',"wp-download_monitor").'

'; else echo '

'.__('Category was not added. Try Recreating the download database from the configuration page.',"wp-download_monitor").'

'; } } elseif (isset($_GET['action']) && $_GET['action']=='deletecat') { $id = $_GET['id']; // Sub cats $delete_cats = array(); if ($download_taxonomies->categories[$id]) { $delete_cats = $download_taxonomies->categories[$id]->get_decendents(); } $delete_cats[]=$id; // Delete $query_delete = sprintf("DELETE FROM %s WHERE id IN (%s) AND taxonomy = 'category';", $wpdb->escape( $wp_dlm_db_taxonomies ), $wpdb->escape( implode(",",$delete_cats) )); $wpdb->query($query_delete); // Remove from relationships $query_delete = sprintf("DELETE FROM %s WHERE taxonomy_id IN (%s);", $wpdb->escape( $wp_dlm_db_relationships ), $wpdb->escape( implode(",",$delete_cats) )); $wpdb->query($query_delete); wp_dlm_clear_cached_stuff(); echo '

'.__('Category deleted Successfully',"wp-download_monitor").'

'; } $download_taxonomies->download_taxonomies(); ?>
categories[$child->id]; if ($c) { echo '
  • ('.$c->id.') '.$chain.''.$c->name.' Delete'; echo '
      '; $download_taxonomies->do_something_to_cat_children($child->id, 'output_category_option', 'output_empty_category_option', "— "); echo '
    '; echo '
  • '; } return; } function output_empty_category_option ($child = '',$chain = '') { echo "
  • "; } $cats = $download_taxonomies->get_parent_cats(); if ($cats) { foreach ( $cats as $c ) { echo ''; echo ''; } } else { echo ''; } ?>
    ('.$c->id.')'.$c->name.''; echo '
      '; $download_taxonomies->do_something_to_cat_children($c->id, 'output_category_option', '', "— "); echo '
    '; echo '
    Delete
    '.__('No categories exist',"wp-download_monitor").'

    :
    :

    " name="add_cat" />

    :
    :
    :

    " name="rename_cat" />