Converting tags on pages imported into WordPress
-
I’ve converted my site to WordPress, and imported just over 1000 pages, containing simple HTML code, into posts. This works well enough for historical text content in those pages, but I’d like to convert the image references to something better suited.
The images are in the following format:
<img src="https://zanshin-sailing.com/wp-content/uploads/2022/03/2017-05-asw-day5-daphne-bow.jpg" />
All of these images have “alt” and “caption” attributes set in the WordPress media library, so I would like to do a global replace to
<img src="h
ttps://zanshin-sailing.com/wp-content/uploads/2022/03/2017-05-asw-day5-daphne-b
w300x169.jpg" alt="{image ALT value}" width="300" height="169" class="size-medium" />I’m not sure if there’s a plugin that can to this type of global replace, or it if need to be programmed manually in php. I’ve programmed in many languages, but have no experience with the WordPress world.
The page I need help with: [log in to see the link]
- The topic ‘Converting tags on pages imported into WordPress’ is closed to new replies.