I am trying to add a select option to help user align the gravatar image. The problem is all value are saved except for the Image Alignment. When they select Image Alignment, it will revert back to "None"
Any help would be highly appreciated
I am trying to add a select option to help user align the gravatar image. The problem is all value are saved except for the Image Alignment. When they select Image Alignment, it will revert back to "None"
Any help would be highly appreciated
On the update() function, you need to modify
$instance['image_alignment'] = isset($new_instance['image_alignment'] );
to
$instance['image_alignment'] = $new_instance['image_alignment'];
isset()
is making the variable boolean, while you are expecting string.