Title: Simple Relative Content
Author: Pierre-André Boissinot
Published: <strong>2012 年 11 月 19 日</strong>
Last modified: 2014 年 4 月 18 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/simple-relative-content.svg)

# Simple Relative Content

 作者：[Pierre-André Boissinot](https://profiles.wordpress.org/pabois/)

[下载](https://downloads.wordpress.org/plugin/simple-relative-content.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-relative-content/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-relative-content/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-relative-content/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-relative-content/#developers)

 [支持](https://wordpress.org/support/plugin/simple-relative-content/)

## 描述

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.

## 安装

You can use the built in installer and upgrader, or you can install the plugin manually.

 1. 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/`.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. That’s it!

If you have to upgrade manually simply repeat the installation steps.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Simple Relative Content」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Pierre-André Boissinot ](https://profiles.wordpress.org/pabois/)
 *   [ Semio Design ](https://profiles.wordpress.org/semio-design/)

[帮助将「Simple Relative Content」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-relative-content)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-relative-content/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-relative-content/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/simple-relative-content/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-relative-content/)。

## 额外信息

 *  版本 **1.0**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-relative-content/)
 * 标签
 * [relative](https://cn.wordpress.org/plugins/tags/relative/)[uri](https://cn.wordpress.org/plugins/tags/uri/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-relative-content/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/simple-relative-content/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/simple-relative-content/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-relative-content/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-relative-content/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/simple-relative-content/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-relative-content/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-relative-content/reviews/)

## 贡献者

 *   [ Pierre-André Boissinot ](https://profiles.wordpress.org/pabois/)
 *   [ Semio Design ](https://profiles.wordpress.org/semio-design/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-relative-content/)