I would like to use a simple function in order to add a specific attribute (lets call it “example”) to the first image of every blog post, so that I don't have to do it manually in thousands of posts.
Unfortunately I'm not very good with preg_replace so any help will be appreciated.
I would like to use a simple function in order to add a specific attribute (lets call it “example”) to the first image of every blog post, so that I don't have to do it manually in thousands of posts.
Unfortunately I'm not very good with preg_replace so any help will be appreciated.
functions
images
customization
Share
Improve this question
asked Oct 26, 2018 at 9:21
k8310k8310311 bronze badge