here's what i've got:
Code:
function tag_checkboxes() {
$tagname = get_tags();
$tag_ids = "1,2";
$tag_ids = explode(',',$tag_ids);
$out = array();
foreach ($tag_ids as $t) {
$out[] = '<input type="checkbox" name="'.$tagname[$t].'">'.$tagname[$t];
}
$tag_checkboxes = implode (' ', $out);
return $tag_checkboxes;
}
the $tag_ids = "1,2"; part is what i have to change, it shouldn't be static like that, i know there's a way simpler way to do what i'm trying.
i think what i want is to make the foreach loop through the tagname array, but i don't know how to represent that.
this has got to be something horribly simple.
while i'm asking for help, is this the best way to do this? i can easily modify the tag info through the function but part of me wonders if this would be better done with some db work