Site logo

Archived topic

featured image caption only on single post

1 reply · Started by Daniel on February 27, 2020

Viewing posts 1–2 of 2

Hi there,

you can try swapping this line:

if( $html == '' ) {

for

if( $html == '' || ! is_single() ) {

So it returns the default HTML if there is no featured image or is !NOT a single post

This archived topic is closed to new replies.