Support » Fixing WordPress » How to add name at bottom of images in Theme.

  • rajesh.rathor

    (@rajeshrathor)


    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

Viewing 1 replies (of 1 total)
  • deepbevel

    (@deepbevel)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add name at bottom of images in Theme.’ is closed to new replies.