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.
- 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
- 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
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
- 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
If you have to upgrade manually, simply delete
hikari-internal-links folder and follow installation steps again.
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 ðŸ™‚
Contributors & Developers
“Hikari Internal Links” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- First public release.