I want to talk about an interesting plugin for Wordpress - “Improved Related posts”. The plugin allows you to add at the end of the publication a list of posts that are most similar in topic to yours. Thus, it becomes possible to keep a user who accidentally came by the link sent by a friend if he finds something in the list that he can be interested in.
I know that there are enough such plug-ins, what is the difference between
this one ? Do not rush to download anything from the link below.
At the end of the article there is a link to a localized plugin, in which I improved the settings interface.The main difference is that when processing the content of your posts, it uses a list of so-called “stop words”.
“Stop words sometimes known as stopwords or noise words (in the case of a SQL Server [1]), “- such a definition is given to this term by
Wikipedia . In other words, these are words that are discarded during word processing. For example, these words are not taken into account when indexing site content by search engines ...
')
The author of the plugin did not like the functionality of the original “Related posts”, since it only considered URLs for comparing different posts, and the URLs of the author’s blog were based on post titles that did not fully reflect the meaning of the publication. Therefore, the plugin did not give the desired effect.
The plugin, however, made it possible to use hidden words in posts that were used for the search, but it is rather difficult to process many previously written publications to add these search words to them.
Therefore, the author made a modified version of the plug-in, which, based on the content of the post, calculated the word frequency using weights for different parts of the note. Also in the plugin used a list of stop words that are not used in this algorithm.
I added to the plugin a list of Russian stop words that I took from one very famous
site of a famous person in Russian Internet.
I attach the file with the modified plugin (
download here ). Tested for 2.3-2.7 Wordpress versions.
In order for it to work, you need to change the page of the Wordpress theme you are using, which displays a separate post. Insert the following block at the end of the page:
<> , ( ):</>
<?php related_posts(); ?>
Instead of the tag <Tag> - use any other that suits the style of your theme.
The plugin has options that can be accessed from the admin page. Using the options, you can determine how to display the found posts on the screen.
Update: I have finalized the plugin. List of changes:
- Added Russian stop words (as mentioned earlier)
- Fully translated into Russian. It looks like this:

- In the option, added weighting fields, which can now be changed without editing the plugin code.
Download the latest version
here ! The previous link also works, and indicates the version of the plugin, which differs from the original Russian stop words added by me.
After downloading,
rename the file from the archive to “related-posts.php” (my mistake is - did not rename the file in the archive. Now everything is fixed)
Which similar plugins do you use?