WordPress is a powerful software, but it lacks some fairly basic functions. One of them is the ability to easily create links between posts or pages. When you write a post, it’s very annoying to leave the editor, and start to look for a post, just to get its permalink.
Fortunately, the plugins are there to help us and fill this gap.
- This post is an english translation of the post WordPress: Faire des liens entre articles
I wish to be able to easily create a link to another post, without leaving the editor, and without having to browse dozens of posts, to find the right one, and copy and paste the permalink.
Plugins with this kind of feature, are not so many. We have:
AWS Easy Page Link
This plugin extends the features of the TinyMCE links window, by adding a list of pages. But there are only pages, no post. Not very useful.
Link to Post
Link to post extends the features of TinyMCE by proposing two additional buttons: the first makes a link to a post, the second to a page.
Operation is very simple: just select the text in the editor, then choose one of the buttons mentioned above.
A window appears, and allows you to quickly look for a post. It is nothing less than a small search engine: we enter few words, that the plugin searches in the titles of post, content, or both. Just click on the right post for the link is automatically inserted in the text.
In practice, the plugin is pleasant to use. This search mode allows you to quickly find the subject, without having to navigate through lengthy lists of articles.
Note a small « bug »: the number of posts displayed after research, with two psots per page. A small change in the file
link-to-post/tinymce/posts.php can change this number (I choose 10).
Post Links to Post II
Post-to-Post Links II is the most basic of the plugins list. It offers just a shortcode to enter manually.
[p2p type = "id" value = "53"] [p2p type="slug" value="hello-world" text="Hello World read my post" ]
The syntax allows to choose a post by giving its ID, or its title, but we can choose also a category or a tag. This manual mode is quite boring, because we still have to look for post by browsing the list outside the editor.
RB Internal Links
From an ergonomy point of view, RB internal links use the same technology than Link to Post . The plugin adds a button in the TinyMCE editor.
In the same way, select the text in the editor, then click on this button. A window appears allowing you to choose the target post. The plugin offers to search for posts by a very pleasant navigation system.
For a little blog containing few posts, the navigation system is truly effective. With many posts, I think the selection should be a little longer.
After selection, the plugin inserts a shortcode in the edited text.
Note that, as you can see on the screenshots, the plugin can make links to categories, pages …
WP Site Links
WP-Links-Site offers another ergonomic solution, using a metabox. This metabox contains the list of posts and pages. We have just to click on it.
The idea is good, only if you haven’t too many posts. This blog contains just over 150 posts, which is not so many. WP Site Links displays a metabox of 150 lines near the posts editor. The page is very high, and I have to scroll a lot to find the right post.
Clearly, two plugins are better than the others: Link to post , and RB internal links. Both have a good ergonomy, with an interface accessible directly from TinyMCE.
These plugins don’t use the same principle: Link to it post adds a direct link in the text, while RB internal links uses a shortcode.
For this reason, I finally choose Link to post, even if I prefer the interface of its competitor. For me, use shortcode has to disadvantages:
- Shortcodes make us dependent on the plugin: how to do when we want to desinstall the plugin,
- They generate additional operations during posts display, which may lead to delays, and workload.