I've manage to implement this on 3.0 version of Church. I'm now trying my hand at doing the same thing for version 4.0. I've probably stared too long at the theme-options.php because I'm not connecting my dots.
Here's the working code for the Church 3.0 version I edited for my site
www.sansdreamscape.net
Code:
//////////////////////////////////
//This is the tag select code
// Mod'ed Cat Code courtesy of Nathan Rice
case 'tag_select':
option_wrapper_header($value);
$tags = get_tags();
?>
<select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
<?php foreach ($tags as $tag) {
if ( get_settings( $value['id'] ) == $tag->term_id) { $selected = ' selected="selected"'; } else { $selected = ''; }
$opt = '<option value="' . $tag->term_id . '"' . $selected . '>' . $tag->name . '</option>';
echo $opt; } ?>
</select>
<?php
option_wrapper_footer($value);
break;
//end tag select code
//////////////////////////
Implementation for version 4.0 is quite different, and I'm having a hard time matching terms to understand what data is expected where. Can I get a breakdown of the arguments used in the dropdown_cats function [i.e. get_theme_mod('featured_top_left') etc], so I can try and make the tag select dropdown example provided on the get_the_tags() ref page work..
Code:
<?php wp_dropdown_categories(array('selected' => get_theme_mod('featured_top_left'), 'name' => $settings.'[featured_top_left]' )); ?>
Right now all I'm seeing is I define a tag dropdown function..and call it, and that's when my brain stops working with me