WordPress.org

Ready to get started?Download WordPress

Forums

How to add name at bottom of images in Theme. (2 posts)

  1. rajesh.rathor
    Member
    Posted 1 year ago #

    Dear all,
    I am using azsimple theme and want to add name at bottom of the images (new launches in my blogs) but unable to do this if any of you have any idea then please suggest me.
    Thanks

  2. deepbevel
    Member
    Posted 1 year ago #

    sounds like you may just need image titles, which only appear with image attachments, and not on images in posts. Otherwise you could use the caption to display titles. Captions appear with embedded images and gallery images.

    if you want captions with featured images (thumnails on the blog or category/archive) you could use:

    <?php the_post_thumbnail();
    echo get_post(get_post_thumbnail_id())->post_excerpt; ?>

    instead of <?php the_post_thumbnail();?> in your template.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.