I’m not really great with code, but I’m also willing to have only one set category if a few selected isn’t possible. I take it the following code needs to be adjusted, but wouldn’t know how to approsch this. Any help would be appreciated.
if($this->options['ttgps_chk_categoryfield'] == "on"){
$args = array(
'orderby' => 'name',
'order' => 'ASC'
);
$categories = get_categories($args);
$template_str .= '<select name="catdrp" class="postform" id="catdrp" ';
$template_str .= ($this->options['ttgps_chk_categoryfield_req']=="on") ? ' required="required" ' : ' ';
$template_str .= '> <option value="">Select a Category</option>';
foreach($categories as $category) {
$template_str .= '<option value="' . $category->cat_ID . '">'.$category->name.'</option>';
}