Home Forums Plugins Custom Fields Support Same – how to not show manual placement if field value is empty?

Welcome to our community support forums! We're here to help - but if you have an urgent request for a Pro Plugin, you will get a prioritised response through our Premium Support page.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #29956
    AnselTk1
    Participant

    I am showing my custom field data like this:

    <li><strong>Dimensions:</strong> <?php echo wpsc_the_custom_fields('slug=dimensions');?></li>

    However, if the value returned is empty, I don’t want the <li></li> shown.

    How does one do this? I can’t seem to find any documentation or usage on how to place other than the plugin settings page, which is not very detailed.

    I have tried:

    <?php if (wpsc_the_custom_fields('slug=dimensions')!='') { ?>
                    <li><strong>Dimensions:</strong> <?php echo wpsc_the_custom_fields('slug=dimensions'); ?></li>
                    <?php } ?>

    but it returns strange results…can anyone help?

    Thanks

Viewing 1 post (of 1 total)
  • The forum ‘Support’ is closed to new topics and replies.