[Resolved] post_thumbnail_html filter does not modify the featured image's content on pages

Home Forums Support [Resolved] post_thumbnail_html filter does not modify the featured image's content on pages

Home Forums Support post_thumbnail_html filter does not modify the featured image's content on pages

  • This topic has 3 replies, 2 voices, and was last updated 4 years ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1227079
    Sam

    Hello,

    I am trying to add the image caption after the featured image and I use the “post_thumbnail_html” filter. It works fine on single posts but does not work on pages. Basically can not modify the featured image at all with that filter on pages. When I disable the “GP Premium” plugin the “post_thumbnail_html” filter works again.

    Best,
    Sam

    #1227208
    David
    Staff
    Customer Support

    Hi there,

    If the featured image size has been set in the Customizer > Layout > Blog – then GP switches that function – to get round that try the code i provide here:

    https://generatepress.com/forums/topic/display-caption-on-featured-image/#post-1059376

    #1228219
    Sam

    If the featured image size has been set in the Customizer > Layout > Blog –

    Yes it was. Fixed now. Thanks mate!

    #1228255
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.