
Plugin "Related posts" for Wordpress
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 accidentally following the link sent by a friend if he finds in the list what he can be interested in.
I know that there are enough such plugins, what exactly is this one different from ? Do not rush to download anything from the link provided. 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 SQL Server [1]), is the name given to words which are filtered out prior to, or after, processing of natural language data (text). »- Wikipedia gives this definition to this term . In other words, these are words that are discarded during word processing. For example, these words are not taken into account when indexing the content of sites by search engines ... The
plugin’s author was satisfied with the functionality of the original “Related posts”, since it took into account only URLs for comparing different posts, and the author’s blog URLs were based on the post headers, which did not fully reflect the meaning of the publication. Therefore, the plugin did not give the desired effect.
The plugin, however, provided the possibility of using hidden words in the posts that were used for searching, but it was rather difficult to process many previously written publications to add these search words to them.
Therefore, the author made a modified version of the plugin, which, based on the contents of the post, calculated the frequency of words using weights for different parts of the note. The plugin also uses a list of stop words that are not used in this algorithm.
I added to the plugin a list of Russian stop words that were taken by me from one very famous site of a famous person in RuNet.
I enclose the file with the modified plugin ( download here ). Tested for 2.3-2.7 versions of Wordpress.
In order for it to work, you need to change the page of the Wordpress theme you are using, which displays a separate post. At the end of the page, insert the following block: Instead of the <Tag> tag, use any other that suits the style of your topic. 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:
Download the latest version here ! The previous link is also valid, and points to 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, I did not rename the file in the archive. Now everything is fixed)
What plug-ins of the same purpose do you use?
I know that there are enough such plugins, what exactly is this one different from ? Do not rush to download anything from the link provided. 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 SQL Server [1]), is the name given to words which are filtered out prior to, or after, processing of natural language data (text). »- Wikipedia gives this definition to this term . In other words, these are words that are discarded during word processing. For example, these words are not taken into account when indexing the content of sites by search engines ... The
plugin’s author was satisfied with the functionality of the original “Related posts”, since it took into account only URLs for comparing different posts, and the author’s blog URLs were based on the post headers, which did not fully reflect the meaning of the publication. Therefore, the plugin did not give the desired effect.
The plugin, however, provided the possibility of using hidden words in the posts that were used for searching, but it was rather difficult to process many previously written publications to add these search words to them.
Therefore, the author made a modified version of the plugin, which, based on the contents of the post, calculated the frequency of words using weights for different parts of the note. The plugin also uses a list of stop words that are not used in this algorithm.
I added to the plugin a list of Russian stop words that were taken by me from one very famous site of a famous person in RuNet.
I enclose the file with the modified plugin ( download here ). Tested for 2.3-2.7 versions of Wordpress.
In order for it to work, you need to change the page of the Wordpress theme you are using, which displays a separate post. At the end of the page, insert the following block: Instead of the <Tag> tag, use any other that suits the style of your topic. 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:
- Added weight fields to the option, which can now be changed without editing the plugin code
Download the latest version here ! The previous link is also valid, and points to 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, I did not rename the file in the archive. Now everything is fixed)
What plug-ins of the same purpose do you use?