WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. pmcbride446
    Member
    Posted 4 months 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

Reply

You must log in to post.

About this Topic