This topic has 6 replies, 2 voices, and was last updated 8 years, 5 months ago ago by Jack Richardson
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
Hello,
Could you please show a screenshot what you want to achieve?
Thank you.
Best regards,
Jack Richardson.
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
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.
This works. Made my day.
Thank you so much Jack!
Hello,
You’re welcome.
Best regards,
Jack Richardson.
Tagged: add author, article image, seo friendly, themes, title, woocommerce, wordpress
The issue related to '‘Add author and title to arcticle image’' has been successfully resolved, and the topic is now closed for further responses