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

Relative URL ShortCode

描述

Now its easy to change domains and move your wordpress blog from subdomain to parent domain like from localhost to live domain you just need to use this shortcode [base_url] as your base url and images So now all links and images are fine after transfer site from localhost to live you don’t need to adjust links after change domain.

ShortCode
[base_url]

屏幕截图

  • You can see diffrance in normal link and normal image in wordpress and in link and image with ShorCode.

安装

** From your WordPress dashboard **

Visit ‘Plugins > Add New’
Search for ‘Relative URL ShortCode’
Activate ‘Relative URL ShortCode’ from your Plugins page.

** From WordPress.org **

Download ‘Relative URL ShortCode’.
Upload the ‘Relative URL ShortCode’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
Activate ‘Relative URL ShortCode’ from your Plugins page.

常见问题

I need to change something after change domain?

No. we always use your site base url so you do not need any configuration for change domain.

I need to change any configuration after activate?

No. we always use your site base url so you do not need any configuration after activate.

评价

2017年3月27日 1 回复
Great little plugin. You need to replace the base url by [base_url]. That's all. Works for images and for links in pages. Very small drawback: doesn't work in text widgets... Thanks! Lenneke
2016年9月3日
This Plugin is Best when you need to work on test domain like localhost or on some sub domain and you need to move data or transfer complete site then it's best to keep links fine.
阅读所有3条评价

贡献者及开发者

“Relative URL ShortCode” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Relative URL ShortCode”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0

  • it is a first version.