I have uploaded my images to Amazon S3. There are some featured images. In order to modify their path, I run the update scripts to change the path of wp_posts.guid
. But the image still points to the old path.
How can I change the featured image url so as to point to the Amazon S3 path?
Thanks
You can hook into the output and modify the URL there.
Output the image
Reference:
Then you have to point the uploads folder to the same location. You can do it by making the below changes in the
wp-config.php
fileOpen up your wp-config.php file, located at the root of your WordPress installation, and add the following code:
The codex specifies that it should be added before the line that says require_once(ABSPATH.âwp-settings.phpâ);.
Make sure the uploads folder is writable.