Easy Post-to-Post Links
- Author:Scott Reilly
- Version:0.9
- Last update:2005-03-24
- Compatibility:WP –
- Comments:go here
- Download:[ zip ]
- Description:
Version: 0.9
-
Extended Description
Version: 0.9
Easily reference another post in your blog using a shortcut, either by id or post slug. The shortcut is replaced with the hyperlinked title of the referenced post.
Find out more at the plugin’s WordPress Plugin Repository page.
Installation
- Upload to your plugins folder, usually
wp-content/plugins/ - Optional: Change configuration options in the file to your liking
- Activate the plugin on the plugin screen
- Use one of the two forms of the shortcut to reference another post when the need arises.
- Upload to your plugins folder, usually
Frequently Asked Questions
Q. How do I use the shortcut in a post to link to another post?
A. To easily link to another post, in your post:
a. type (where ’22′ is the post id of the post you want to reference)
-or-
b. type (where “hello-world” is the post slug of the post you want to reference)In either case, if a matching post is found, the shortcut will be replaced with the title of the post hyperlinked to
the post’s permalink.Q. Where do I find the ID for the post I want to reference?
A. Some of the ways:
* In the admin section, under “Manage”, it should be the first column in the posts listing.
* If you aren’t using rewrite rules, it is the number after the “p=” in the post’s URL.Q. Where do I find the post slug for the post I want to references?
A. Some of the ways:
* If you know the manner in which post titles are turned into slugs (i.e. make all characters lowercase, turn spaces
into underscores, and remove all other alphanumeric characters). you could figure it out on your own, i.e.
“Hello World!” becomes “hello-world”
* If you are using rewrite rules, it is the part that follows the date in the URL.
* If you edit the post, it’ll appear under the “Advanced” sectionQ. What happens if it doesn’t find a post that matches what I put within the double-quotes?
A. The shortcut will be replaced with an empty string (i.e. nothing).Q. Are there any special situations where this might not work properly?
A. An incorrect substitution will take place if you happen to have a post with a numerical title (and thus a numerical post slug).
Release Log
Copyright & Disclaimer
Copyright © 2004-2005 by Scott Reilly (aka coffee2code)Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
