forked from tevko/wp-tevko-responsive-images
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add WP-CLI command for rewriting old posts #143
Labels
Comments
Related to issue #83 |
+1 |
+1 I really hope this can be implemented in the near future. |
+1 Would really be great. Just added the plugin and the blog is atm loading several older posts that do not have the images that are responsive. |
Since we've switched to a display filter, this functionality is no longer needed. Related #148. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another approach to providing responsive images to posts written prior to installing this plugin, is to provide a command through WP-CLI which would update all of the posts in the database with the new image markup. Ideally, we would do a search of the DB for all instances of images with a URL path that matches the site's uploads directory (or by looking for a
wp-image-
class) and update each of those posts so that they can be rolled back, via post revisions, if anything breaks.The text was updated successfully, but these errors were encountered: