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

Hikari Internal Links

描述

Don’t worry anymore of linking a post or a category, to later change its title or slug, or changing your posts permalinks, and creating invalid links to your own site pages.

Hikari Internal Links provides a shortcode that dynamically generates links to most WordPress resources. You can query these resources based on their ID or slug, and these links are generated dynamically. Therefore if you change a resource’s title or permalink, its links will be updated automatically.

Features

  • A shortcode generates links to internal pages dynamically
  • If the permalink changes, links are updated automatically
  • You can get links based on resources ID or slug
  • If resource isn’t found, you get a warning text surrounded by class wpdberror, which is hidden from your visitors and shown to you with a yellow background so that it’s easy to notice and fix

Available Resources

  • posts, pages and custom types, based on ID or slug
  • comments, based on ID
  • categories, tags and custom taxonomies, based on ID or slug
  • feeds for categories, tags, comments of a post, based on their ID or slug
  • if current resource was already set to global variable, you can use ID 0 to link to current resource

This plugin is a fork from Michael Toppa‘s Post-to-Post Links II.

安装

Hikari Internal Links requires at least WordPress 2.8 and PHP5 to work.

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

  1. Download the zip file, upload it to your server and extract all its content to your /wp-content/plugins folder. Make sure the plugin has its own folder (for exemple /wp-content/plugins/hikari-internal-links/).
  2. Activate the plugin through the ‘Plugins’ menu in WordPress admin page.
  3. Now you can start using the shortcode to build internal links to your site

Upgrading

If you have to upgrade manually, simply delete hikari-internal-links folder and follow installation steps again.

Uninstalling

Hikari Internal Links doesn’t store configs in database. You can freely deactivate it or simply delete its files and it will be fully uninstalled.

常见问题

Where can I see a list of all shortcode parameters and exemples of it being used?

For a full description of its shortcode parameters, please refere to Hikari Internal Links Exemples.

What happens if I build a link based on slug and later change that resource’s slug?

Most resources can be queried by ID or slug, this feature is provided to offer flexibility on its use. When a resource is queried, the value used to query must refere to a existing resource. If you query using ID and change the resource ID, then there’s no way to find what it used to refere to… same thing goes for using slug and later changing the slug.

I suggest using ID always when possible and never change resources IDs, that’s not needed at all and could only be done editing directly the database.

Where’s the options page?

There’s none, currently I see no need to set options. Just use the shortcode anywhere you want 🙂

评价

此插件暂无评价。

贡献者及开发者

“Hikari Internal Links” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Hikari Internal Links”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

0.06

  • First public release.