Return to Snippet

Revision: 52225
at October 17, 2011 04:46 by pmalerba


Initial Code
<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>

Initial URL

                                

Initial Description

                                

Initial Title
Wordpress Select categories option panel themes

Initial Tags
wordpress

Initial Language
PHP