Tag Info

Hot answers tagged

1

You have two issues here, one is a performance issue, the other is big issue that should return a pile of errors if you enable debug The performance issue here is your first instance where you are getting the terms. It seems that your goal here is to get only top level terms, yet you get all. I would just add 'parent' => 0 to the arguments to get only ...


1

Got help on Facebook and just needed to change this: <option value="<?php echo $term->name; ?>" <?php if($_POST['mealtype'] == $term->name) { echo 'selected'; } ?>><?php echo $term->name; ?></option> to this: <option value="<?php echo $term->slug; ?>" <?php if($_POST['mealtype'] == $term->slug) { ...



Only top voted, non community-wiki answers of a minimum length are eligible