/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<select class="aselect" id="<?php echo $value['id']; ?>" name="<?php echo $value['id']; ?>"> <?php global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } $cats = get_categories('hide_empty=0'); foreach($cats as $cat) { ?> <option value="<?php echo $cat->cat_ID; ?>"<?php selected($tt_catbox_1, $cat->cat_ID); ?>><?php echo $cat->cat_name; ?></option> <?php } ?> </select>