Home › Forums › Support › How to show image caption on all archive pages This topic has 1 reply, 2 voices, and was last updated 4 years, 3 months ago by David. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts May 18, 2021 at 12:35 am #1786927 webcréateur Hi there, How can we display the image caption on all archive pages? – Category archive pages – Tag archive pages – etc. https://gpsites.co/dispatch/category/styling/ Best regards. May 18, 2021 at 3:33 am #1787251 DavidStaff Customer Support Hi there, you can use this PHP Snippet: add_action( 'post_thumbnail_html', 'db_auto_single_featured_caption', 10 ); function db_auto_single_featured_caption( $html ) { $caption = get_the_post_thumbnail_caption(); if ( !is_single() && !empty($caption) ){ $html .= '<div class="wp-caption">'. $caption . '</div>'; } return $html; } Adding PHP: https://docs.generatepress.com/article/adding-php/ Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In