adjusting dropdown for subcategories
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 15:21:43 +0000 (10:21 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 15:21:43 +0000 (10:21 -0500)
index.php

index d2dfc76..5e592f8 100644 (file)
--- a/index.php
+++ b/index.php
@@ -486,7 +486,7 @@ function michsci_get_terms_dropdown($cat_id)
     if($cat_id){
         $main = get_term($cat_id, MICHSCI_CATEGORY_NAME);
         $cats_child = get_term_children($cat_id, $taxonomyName);
-        $output ="<select id='categoryDropdown' name=\"" . MICHSCI_CATEGORY_NAME . "\"><option value=\"\"> Select Category" . "</option>";
+        $output ="<select id='categoryDropdown' name=\"" . MICHSCI_CATEGORY_NAME . "\"><option value=\"\"> Select " . $main->name . " Sub-category" . "</option>";
         foreach($cats_child as $cat){
           $output .= '<option value="' . $cat . '"';
            if ($_REQUEST[MICHSCI_CATEGORY_NAME] == $cat) {