Home › Forums › Back End › [WORDPRESS] Remove div IF textarea is empty for Events Post Type Function › Re: [WORDPRESS] Remove div IF textarea is empty for Events Post Type Function
June 14, 2013 at 10:48 pm
#138783
__
Participant
No, I understand the issue; I’m just trying to understand where the problem is coming from. The code you posted seems like it should be producing the desired result –
if your `if( ! empty( $event_info ) )` condition is _always true_, I’d like to backtrack and see what might be causing `$event_info` to _never be empty_.
Yes, it would be helpful to see _everything_ you wrote.
In particular, how did you define the fields for your custom post type?