• Hi All

    Am trying to create a function so I can add/change the actual HTML around images in the content and in the embedded WordPress galleries.

    I have been using the filer get_image_tag to target the individual images, but this doesn’t touch the images that are in the galleries.

    I know there is a separate filter call to redo the whole gallery, but would more than double up on my code if I did that.

    So is there a way to target in one function the images and the gallery images?

    Thanks!!!!

  • The topic ‘Function to target images in post content and gallery’ is closed to new replies.