Viewing 1 replies (of 1 total)
  • Plugin Author shauno

    (@shauno)

    Untested, but something like this is what you’re looking for:

    <?php
    if($cf = nggcf_get_field($image->pid, "Your Image Field Name")) {
        echo "Your text here: ".$cf;
    }
    ?>

    It’s just doing a quick check to make sure there is a value in the custom field. If there is, it outputs “Your text here:”, and then the custom field value

Viewing 1 replies (of 1 total)
  • The topic ‘Display other text if field has text’ is closed to new replies.