Support » Fixing WordPress » How to : Dropdown list in options page

Viewing 1 replies (of 1 total)
  • <select name="theme_settings[something]">
    <?php
    
        $categories=  get_categories();
      foreach ($categories as $category) { ?>
    
        <option <?php if ($options['something'] == $category->category_nicename ){ echo 'selected="selected"'; } ?>><?php echo htmlentities($category->category_nicename); ?></option>
        <?php } ?>
    
    </select>
Viewing 1 replies (of 1 total)
  • The topic ‘How to : Dropdown list in options page’ is closed to new replies.