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 13, 2013 at 11:37 pm
#138666
chrisburton
Participant
My WordPress setup was similar. I changed yours to what mine looked like which worked for me.
$event_info = get_post_meta($post->ID, ‘event_info’, true);
if(!empty($event_info)): ?>
INFO:
if(!empty($event_info)): ?>
INFO: