Added a custom textarea to the meta box for “Events” the information is displayed on my events page but my issue now is that when there is no text inside of the textarea the label “INFO” is still visible. I’d like to remove the label if no information has been added.
Here is the code for the custom text area//
$ret = $ret . '
and here is the code I used for the html within the function//
On the surface, I don’t see any reason why this wouldn’t work as desired. No offense to you (or anyone), but I have a strong dislike for WP behind-the-scenes, and the “shortcode” and “functions.php” models are two of the main reasons why. : )
`get_post_meta` (with `$single=true`) is supposed to return an empty string if it finds nothing.