Add author and title to arcticle image - by Stephan Schurig

This topic has 6 replies, 2 voices, and was last updated 7 years, 10 months ago ago by Jack Richardson

  • Avatar: Stephan Schurig
    Stephan Schurig
    Participant
    June 26, 2016 at 06:22

    Hey Guys,

    can you tell me where to add something like a title and the author to an article image on the blog page for creative common license?

    By research I found out that I can add that by grabbing the excerpt from image description
    with <?php echo get_post(get_post_thumbnail_id())->post_post; ?> added in the single-post.php but how do I do that in the blog page and WHERE.

    Searched everywhere but cannot find it.

    Can you lend a hand?

    Thank you so much for helping out.

    Best Stephan

    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 27, 2016 at 09:19

    Hello,

    Could you please show a screenshot what you want to achieve?

    Thank you.
    Best regards,
    Jack Richardson.

    Avatar: Stephan Schurig
    Stephan Schurig
    Participant
    June 27, 2016 at 15:21

    Hi Jack,

    yes, sure. When you look here in single post

    http://i.imgur.com/Z3n9OXu.png

    you see: BILD: MARKUS GÖTZ below the article image.

    I wanna have exactly this on the blog page http://friedensrichter.sherpaz.de/blog/ below each
    image to display the individual text excerpt (caption) of each image.

    Thank you so much.

    Best regards
    Stephan

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 27, 2016 at 18:13

    Hello,

    To show excerpt on blog page below the post image you need to edit the wp-content/themes/royal/content.php file, add your code in line 69.

    Best regards,
    Jack Richardson.

    Avatar: Stephan Schurig
    Stephan Schurig
    Participant
    June 28, 2016 at 19:36

    This works. Made my day.

    Thank you so much Jack!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 29, 2016 at 07:29

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘Add author and title to arcticle image’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.