このプラグインは 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.

FAQ

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.

評価

2024年2月26日
was hoping to use this to make a new site I'm spinning up to replace an existing/old one more 'move proof' however for some reason the colon is missing in the URL that is generated with the short code. My site is using https, and the urls created are 'https//temp.domain.com' without the colon so it fails. I looked at the code a bit (not a developer) and it wasn't obvious how I might modify it to work.
2017年3月27日 1 reply
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.
4件のレビューをすべて表示

貢献者と開発者

Relative URL ShortCode はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Relative URL ShortCode” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.0

  • it is a first version.