Professor99, you are my hero. Thank you very much for sharing your solution. It worked perfectly for me.
There haven’t been any noticeable side effects for you since commenting out that line?
@tkhan
I needed checkboxes as well and get them working just by modifying Jonathan Grandin’s code a bit.
<?php
foreach ($medias as $media) {
$selected = (has_term($media->slug, 'practice-areas', $post->ID)) ? ' checked="yes" ' : '';
echo '<input type="checkbox" name="post_media[]" value="' . $media->name . '" ' . $selected . '> ' . $media->name . '<br />';
}
?>
Thanks for all of the info everyone has submitted here. It’s been a huge help.
Thank you very much for the response, Chad.