I thought that the if statement was always true. Due to my lack in knowledge I didn’t realize I could call the field label (if that’s it name) with the function. I’m learning, which is good.
@david I had been using the function to cut down on repeat code with lots custom field types. I started using a plugin to handle custom fields to clean up the back end. Now the only field left is video. I could drop the function completely.
Thanks you very much gentle men!
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘how to get_post_meta and if else statement’ is closed to new replies.