Linux 软件免费装
Banner图

WP-Portability

开发者 frasmage
plankdesign
更新时间 2015年10月26日 22:00
PHP版本: 3.1 及以上
WordPress版本: 4.0
版权: GPLv2 or later

标签

shortcode url portable installation portability mobility domain-agnostic relocation

下载

详情介绍:

Summary WP-Portability is a plugin designed to quietly make your site more portable. It is to designed to facilitate the work that needs to be done to be move a wordpress install to another directory or server or domain name. It makes WordPress much less attached and dependant on its install directory and domain name. Though anyone can make use of WP-Portability, it was designed with developers in mind. It greatly facilitates designing sites locally amongst a team of developers, moving the site to a staging server and finally pushing it live. Features WP-Portability provides the following optimizations:

安装:

Installation
  1. Make sure you are using WordPress 3.1 or later and that your server is running PHP5
  2. Download the plugin
  3. Extract all the files.
  4. Upload everything to the /wp-content/plugins/ directory.
  5. Activate the plugin through the 'Plugins' menu in the WordPress admin.
  6. Go to the portability settings page in the WordPress admin and adjust your settings.
  7. (optional) You can force the plugin to parse every post in your site for local links by pressing the Insert Shortcode button. This may take a few minutes.
  8. That's it. WP-Portability works silently.
Deactivation / Uninstallation Unless you intend to reactivate the plugin shortly, you will need to clear all of the hidden shortcodes out of your database.
  1. Go to the portability settings page in the WordPress Admin
  2. Press the 'Purge Shortcode' button. This may take a few minutes.
  3. Go to the Plugins page.
  4. Press the deactivate and/or delete plugin button.

常见问题:

Can I use that mysterious shortcode myself?

Yes! The shortcode introduced by this plugin can absolutely be used to help you write out local links. The only caveat is that it will automatically be rendered back to you whenever you save the post (save draft, publish or update). The syntax is the following: [url {location}] Where {location} is a part of the site to link to. Possible values include:

  • site : Will generate a url for the root installation directory
  • uploads: Will generate a url for the media upload directory
  • plugins: Will generate a url for the plugins directory
  • theme: Will generate a url for the main theme directory
  • stylesheet: Will generate a url for the child theme directory (if any). Otherwise, this is identical to theme.
You can then append your more specific path to the shortcode. For example:

Why don't all features work with a WordPress MultiSite install?

WordPress Multisite (network) installs greatly change the way wordpress structures itself. As such, the fixes that this plugin introduces may conflict with this configuration. Until further testing and development can be done, we have disabled the problematic features automatically for the time being. This may be fixed in a future release.

I deactivated/uninstalled the plugin and now my links don't work and/or I see [url site] littered throughout my post. How do I fix this?

If you intend to get rid of this plugin entirely (we are sorry to see you go!), then you should let the plugin purge its shortcodes from your database first. Before you deactivate or uninstall the plugin, Go to the portability settings page in the WordPress admin and press the Purge Shortcode button. This will safely convert all local link shortcodes in your database back to absolute links.