Conditionally display custom field data
-
Hello,
Wondering if you could help with what I’m sure is a simple question.
Right now I am setting up a custom template for my CPT loop, and would like to leave out empty fields. What is the proper syntax for achieving this? I am obviously a php newbie!Right now I am using this in my template:
<?php echo "Address: ".types_render_field("address", array("output"=>"HTML"));?>
but If there is no address entered, how do I make that field not display as an empty field in the loop?
Thanks so much for your awesome plugin and for any support you could offer!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Conditionally display custom field data’ is closed to new replies.