Support

Account

Home Forums General Issues Issue with post object and if/else Reply To: Issue with post object and if/else

  • One thing you can do is try to debug on what the actual returned value is.

    Try to do dump out the value before your if statement, and see if it’s actually ‘Announcement Pending’.

    Something like:

    
    var_dump(get_field('obits-second_visitation_location'));
    
    if (....
    ...
    

    Cheers.