Description
When you use the WordPress editor to insert a media in the content field it stores a reference to the absolute path.
So if you change the location of your site (by switching from staging to production environment for example) all your paths will be incorrect.
This plugin stores relative pathes in the db instead of an absolute path.
Beware: this plugin must be activated BEFORE inserting a media into the content field. It has no effect on the medias stored before the activation.
It’s mostly based on the WP_SITEURL constant which should be defined in the wp_config.php file. If this constant isn’t defined it uses the “siteurl” option value instead.
If the plugin detects that you access the website from another location than the “siteurl” defined initially it can correct most of the wrong urls in the database.
Localisation of the plugin into french.
Installation
You can use the built in installer and upgrader, or you can install the plugin manually.
- You can either use the automatic plugin installer or your FTP program to upload it to your wp-content/plugins directory
the top-level folder. Don’t just upload all the php files and put them in/wp-content/plugins/
. - Activate the plugin through the ‘Plugins’ menu in WordPress
- That’s it!
If you have to upgrade manually simply repeat the installation steps.
Reviews
There are no reviews for this plugin.
Contributors and Developers
“Simple Relative Content” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Simple Relative Content” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.