Alt text not showing…

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



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

                                <li>
                            <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" />
                            </a>
                                </li>
                        <?php endforeach; ?>
                    </ul>
                <?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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: