Alt text not showing echo

Alt text not showing…

    $images = get_post_meta(get_the_id(), 'vdw_gallery_id', true);

                if( $images ): ?>
                        <?php foreach( $images as $image ): ?>

                            <a href="<?php echo wp_get_attachment_image_url($image, 'large');  ?>">
                                <img src="<?php echo wp_get_attachment_image_url($image, 'medium'); ?>" alt="Alter TEXT" />
                        <?php endforeach; ?>
                <?php endif; ?>             

I try many ways but not getting how to echo alter text I create meta field for gallery

Read more here: Alt text not showing echo

Leave a Reply

Your email address will not be published. Required fields are marked *