WordPress.org

Forums

How to call the alt text of a custom field image. (1 post)

  1. pmcbride446
    Member
    Posted 1 year ago #

    Hi everyone.

    Is it possible to call the alternative text of an image, which has been uploaded as a custom field?

    Currently, from within the wordpress loop, I call the image using,

    <?php echo get_post_meta(get_the_ID(), 'wpcf-image-1', true ); ?>

    How would I get the related alternative text and caption?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic