Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#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?