WordPress.org

Ready to get started?Download WordPress

Forums

Display Image Captions Link in Template File (1 post)

  1. gleenk
    Member
    Posted 1 year ago #

    Hi there, how can i print links in Image Captions in my theme, for example in single.php? I tried:

    echo get_post(get_post_thumbnail_id())->post_content;

    But it shows only text without hyperlink. (using post_excerpt is the same).
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic