WordPress.org

Ready to get started?Download WordPress

Forums

How to Retrieve the Image Title? (4 posts)

  1. Chris
    Member
    Posted 1 year ago #

    When inserting an image into a post you have options to give the image a Title, Caption, Alt and Description. I am trying to figure out the code to retrieve those if, say, I wanted to insert the Title into the link (href) containing that image. Is this possible to do?

  2. David Choi
    Member
    Posted 1 year ago #

    Are you trying to do that from the post editor (not as I know of) or PHP code in functions.php (yes this is possible)?

  3. Chris
    Member
    Posted 1 year ago #

    Trying to retrieve it in the php code within the theme. Thanks!

  4. David Choi
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.