Mô tả
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.
Cài đặt
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.
- Download the zip file, upload it to your server and extract all its content to your
/wp-content/pluginsfolder. Make sure the plugin has its own folder (for exemple/wp-content/plugins/hikari-internal-links/). - Activate the plugin through the ‘Plugins’ menu in WordPress admin page.
- 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.
Hỏi đáp
- 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 .
- 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 🙂
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“Hikari Internal Links” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Hikari Internal Links” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
0.06
- First public release.