Support

Account

Home Forums ACF PRO Alt

Helping

Alt

  • Hi everybody,

    I’m using this code:
    <?php if( get_field(‘image’) ): ?>
    ” alt=”<?php echo $image[‘alt’]; ?>” class=”res” />
    <?php endif; ?>

    but alt tag doesn’t work.
    What am I doing wrong?

  • Sorry,

    correct code:

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.