mercredi 24 décembre 2014

Shortest way to output 0 if meta does not have value / is empty

Hope that title makes sense, I have a few meta fields that I want to output 0 if they are empty.


currently outputting the values with this:



<?php meta('some-field'); ?>


Thanks for any help.


Alex


Aucun commentaire:

Enregistrer un commentaire