Title: Related Posts Neural Network
Author: Neil T King
Published: <strong>Séptémber 18, 2024</strong>
Last modified: April 9, 2025

---

Search plugins

![](https://ps.w.org/related-posts-neural-network/assets/banner-772x250.png?rev=
3153972)

![](https://ps.w.org/related-posts-neural-network/assets/icon-256x256.png?rev=3153972)

# Related Posts Neural Network

 By [Neil T King](https://profiles.wordpress.org/neiltking/)

[Download](https://downloads.wordpress.org/plugin/related-posts-neural-network.0.0.4.zip)

 * [Details](https://su.wordpress.org/plugins/related-posts-neural-network/#description)
 * [Reviews](https://su.wordpress.org/plugins/related-posts-neural-network/#reviews)
 *  [Installation](https://su.wordpress.org/plugins/related-posts-neural-network/#installation)
 * [Development](https://su.wordpress.org/plugins/related-posts-neural-network/#developers)

 [Support](https://wordpress.org/support/plugin/related-posts-neural-network/)

## Description

[Related Posts Neural Network](https://www.neiltking.com/neuralnet/) learns what
visitors access on your website and builds a locally stored Neural Network (Artificial
Intelligence). This is then used to suggest other posts, pages or content on your
site that visitors may like. You will have seen something similar on sites where
they say “You may also like…” or “Other visitors were interested in…”.

Some key features include:

 * As it works by examining the URL, it will work with all content types in all 
   languages which users may visit, for example articles, products, pages, blog 
   posts, courses, photo galleries etc.
 * No visitor statistics or data leaves your website. Nothing is processed externally.
   Everything is done locally using no third party services. The custom written 
   A.I. is built entirely within the plugin.
 * The plugin is written to be efficient so there should not be any noticable affect
   on the speed of your website.
 * No identifiable or personal information is collected from your visitors helping
   it abide by GDPR and privacy rules.
 * It is easy to install and set up for pretty much any WordPress site.
 * Works with the Gutenberg Block editor and Classic editor, and should work with
   any theme.
 * Insert suggestions anywhere in your site with the simple shortcode [rpnnrecommend].
   You can adjust how it appears by adding parameters like [rpnnrecommend total=”
   6″ thumbnails=”false” class=”recommendedlist” title=”You might like…”] which 
   would suggest six items the visitor might also be interested in, without featured
   image thumbnails, and assign the CSS class called “recommendedlist” to it.

The FREE version is limited to 30 synapses/paths/links between content, and the 
charts will only show up to 30 links and 10 items (e.g. pages). It is designed for
you to try the plugin and decide if you like it and want to unlock the PRO version,
but you can use the free version for as long as you like – there are no time limits.
For small sites you may never need to upgrade.

To unlock the PRO version of the plugin, follow the link in the plugin settings.
Here are some of the benefits you would receive:

 * Unlimited Neural Net size and number of synapses/paths (within database and your
   server limitations).
 * Neural Network graph increases from showing 10 nodes to 500, and from 30 synapses/
   paths/links to 1500.
 * The ability to manually adjust the weight/prominence of links between urls to
   help force or discourage certain recommended links.
 * Automatically downloads a list of common search engine bots/crawlers to block
   and prevent them from affecting the neural network.
 * A list of bad IP addresses is automatically downloaded to block any known misbehaving
   users from affecting the neural net.
 * Email support and help if needed.

This plugin is Copyright 2024, Neil T King.

### Third Party Libraries and Links

The plugin uses 2 third party libraries which are included within the plugin so 
they do not need to be called from external sources (for security). They are only
accessed by site administrators when they view the statistics tab inside the plugin
settings area. Both of these javascript libraries are obfuscated to make the files
smaller and faster to load. They are:
 * Chart.js – https://www.chartjs.org – MIT
License – Full source available from: https://github.com/chartjs/Chart.js * Vis.
js (network) – https://visjs.org – APACHE 2.0 License – Full source available from:
https://github.com/visjs/vis-network

The plugin also talks to my server in order to check if the Pro licensed features
should be unlocked and to download updated block-lists for search engine bots and
bad IP addresses. The information it passes to the server is:
 * A unique ID number
for your website (containing no personal or private information) * The host URL 
of your website in case the website or plugin gets re-installed so it can retrieve
your unique ID number.

Communication with my server occurs once when the plugin is activated, then twice
a day. It is also checked when the plugin settings page is accessed. This is purely
to unlock the Pro features as soon as possible after purchase.

The Privacy Policy is available at: https://www.neiltking.com/neuralnet/#privacy

## Screenshots

 * [[
 * A visual representation of the Neural Network available in the WordPress dashboard.
 * [[
 * A bar graph showing the number of visitor sessions for each URL.
 * [[
 * A typical way that suggested articles are displayed.

## Installation

From the WordPress dashboard, under “Plugins” choose “Add New Plugin”. Click the“
Upload Plugin” button and choose this plugin ZIP file.

Alternatively you can UNZIP the plugin folder into your /wp-content/plugins/ folder
and upload it to your site. All of the files should be in a folder like /wp-content/
plugins/related-posts-neural-network

Activate the plugin through the “Plugins” menu in WordPress.

From the main WordPress dashboard menu, choose “Related Posts Neural Network” and
check the options before
 switching on “Learning Mode” for it to learn from visitors
and build the neural network.

## FAQ

### Is there anything I need to do before I install the plugin?

ALWAYS make a backup of your website before making changes or installing new plugins,
just in case. Even better, copy your website to a test server and try out the plugin
there first. There should not be any issues and the plugin is easy to uninstall 
if needed, but it is better to be safe than sorry. As long as you are running WordPress
as the content management system driving your website and are able to install custom
plugins, it should work. You can try the plugin for free to ensure you are happy
before registering it and paying for the PRO features. As WordPress is so flexible
and there is so much customisation possible I cannot guarantee it will work on every
instance, and cannot be held responsible for any issues that arrise.

### Can it be told to only suggest some content and not others?

Yes. In the settings for the plugin you can set what must appear in the URL for 
it to be included in the neural network, for example if you only want it to learn
and suggest about blog articles you may want it to only monitor URLs which contain“/
article/” or “/blog/”. For an online shop, you might want to only monitor and suggest
products which all live under “/product/”. If there are particular pages or parts
of your site that you don’t want it to know about then you can add those too. You
can even get it to strip out certain variables which appear in the URL such as search
terms or ID numbers, or all GET variables. It is quite flexible.

### What about search terms and other variables in the URL?

You can tell it to strip all GET variables from the URL if you wish, or just certain
ones. By default, WordPress tends to add search terms to the URL using an “s” variable
so just that can be removed if you like. If you are using permalinks for your URLs
and not relying on ID numbers added as GET variables to the URL then I recommend
stripping all GET variables.

### Is there a time limit for the free version of the plugin?

No. You can use the free version for as long as you like but it does have limits
on the amount of content and links it will use to build the neural network. This
might be enough for smaller sites and should be enough for you to try the plugin
and ensure it works fully before you decide if you want to purchase the PRO version.
You get some other benefits from registering too, such as the automatic updating
and detecting of search engine spiders and bad IP addresses, plus email support 
if you need it.

### Is the PRO version a subscription service?

No, there is no subscription needed. Unlocking the PRO features is a one-time fee
for the lifetime of the product.

### Will it suggest links on other websites?

No. The plugin only learns from URLs accessed on your website, and will only form
links to other URLs within your website.

### Does the plugin send data to you or share information with anyone else?

No. It checks in with my server to see if you are a PRO user, but no visitor data
or statistics leave your server and nothing is shared with any third parties. Security
and privacy is very important.

### What if I change the permalink structure or URLs in my website?

The plugin is smart enough to know if pages or posts etc. are no longer there (e.
g. deleted) and will not recommend them any more, but it cannot know if something
has moved. This is why it is important to ensure your website URLs are formatted
how you want them to be before switching on “Learning Mode”. You can wipe the Neural
Net and start again if needed from the settings area (under the “Reset” tab) but
there is no way to undo a reset. The brain will be washed clean!

### Does it use ChatGPT or Google Gemini etc. for it’s Artificial Intelligence?

No. Those are LLMs (Large Language Models) and aren’t required for a single, specialised
task like this. The machine learning system built for this plugin is unique and 
entirely self-contained within the plugin so there is no need to use any external
services.

### How easy is it to set up?

Very easy. Once installed you simply need to ensure you enter some key bits of information
in the plugin settings area so it doesn’t start learning about parts of your website
you do not want it to suggest. Once you are happy it will only collect visits for
the relevant parts of your website, turn on “Learning Mode” and it will start to
make the neural net. The more visitors your site gets, the more links it will create
and the more accurate it’s suggestions will become. I recommend leaving it learning
for a while before getting it to suggest links to visitors. You can see how the 
neural network is progressing by looking at the “Statistics” tab in the plugin settings.
You can leave the learning mode on while it is making suggestions, or turn it off
if you feel it has learned enough.

### How do I insert the suggested links?

Insert the shortcode [rpnnrecommend] where ever you want it to list some suggested
links. By default it will show 3 suggestions with thumbnails of their featured image.
You can adjust how it appears by adding parameters like [rpnnrecommend total=”6″
thumbnails=”false” class=”recommendedlist” title=”You might like…”] which would 
suggest six items the visitor might be interested in, without featured image thumbnails,
and assign the CSS class called “recommendedlist” to it. You can insert the shortcode
into template files using the PHP command echo do_shortcode(“[rpnnrecommend]”);

### Why aren’t some visits registering and appearing in the graphs?

The first page viewed by new visitors will get stored but will not create a synapse/
path as they have not viewed any other page yet. Every visitor session lasts a maximum
of 1 hour. If they return to your website after an hour, it classes it as a new 
session.

If you think visits to multiple pages are not being recognised, your server may 
have some kind of aggressive caching switched on so the visitor is seeing a cached
version of the pages rather than it triggering a new view. Check your caching settings
or consult your hosting provider if unsure.

### What is your background and why did you write this plugin?

I have been writing software for decades and spent 20 years working in education.
I have written software for many industries including education, automotive, child
safety, medical and gaming. Artificial Intelligence and especially neural networks
have been an interest of mine for some time. I have built a few for specialist tasks
and as I build websites and cloud based applications I thought a WordPress plugin
would be very useful for my clients and anyone else with a WordPress website.
 The
neural network is based on the model in my book, “Make Independent Computer Games”
available from Amazon: https://www.amazon.co.uk/dp/B0CNMFHZ6Z https://www.amazon.
com/dp/B0CNMFHZ6Z

## Reviews

![](https://secure.gravatar.com/avatar/92d61e1e103b9a741e3a0c59c9f91f5ac0aa26ff3f6e0f799b75cd2e831ccbd8?
s=60&d=retro&r=g)

### 󠀁[Automatic linking is magic!](https://wordpress.org/support/topic/automatic-linking-is-magic/)󠁿

 [moviemoon](https://profiles.wordpress.org/moviemoon/) Maret 12, 2025

I try several “recommend related posts” plug-ins but they all need manual linking
between posts. This is the first i have seen to be all automatic. Wonderful. It 
work with all my articles too even if some are videos or photo galleries. The neural
network graph is very interesting to see the brain grow and more visitors. I recommend
and will add to my other site too. EDIT: If you have search on your site, switch
on “Strip all GET variables” if you do not need them. This will stop searches showing
in the URL list. I forgot this first time.

![](https://secure.gravatar.com/avatar/91e5ad5050257a782b68763013c2316a538bd7c48f31e6dd6827c2ad7dce1533?
s=60&d=retro&r=g)

### 󠀁[Works perfect](https://wordpress.org/support/topic/works-perfect-1108/)󠁿

 [webby999](https://profiles.wordpress.org/webby999/) Séptémber 18, 2024 1 reply

Looked complicated at first but not really. I only needed to enter a couple of things
and turn it on. The graphs are very cool and also show visitor counts for every 
blog article. Smarter than other recommending post plugins. This doesnt need me 
to manually add links between posts. It is all automatic from visitors viewing the
site. I have been using it since beta version and its saved me lots of time. A++
+

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/related-posts-neural-network/reviews/)

## Contributors & Developers

“Related Posts Neural Network” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Neil T King ](https://profiles.wordpress.org/neiltking/)

[Translate “Related Posts Neural Network” into your language.](https://translate.wordpress.org/projects/wp-plugins/related-posts-neural-network)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/related-posts-neural-network/),
check out the [SVN repository](https://plugins.svn.wordpress.org/related-posts-neural-network/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/related-posts-neural-network/)
by [RSS](https://plugins.trac.wordpress.org/log/related-posts-neural-network/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### v0.0.4

 * Tested and fully working with WordPress 6.8
 * Added fixes to help it work with server-side caching which prevented some page
   visits being recognised.
 * Fixed duplicate bar graph labels due to changes in newest version of Chart.js.

#### v0.0.3

 * WordPress translation support added.
 * Chart.js updated to latest version (4.4.4).
 * Links to chart.js and vis-network.js source code added.
 * Inline javascript now queued.
 * Extra sanitization of user settings added.
 * Shortcode changed from [recommend] to [rpnnrecommend] to avoid conflictions.
 * Information on API call added to README.
 * Multiple changes to abide by WordPress.org publication rules.

#### v0.0.2

 * Still in beta testing.
 * Added total URLs visited to statistics tab.
 * Added database disk space usage to statistics tab.
 * Search box added for URLs on statistics tab.
 * Ability to delete all references to a URL in the neural net.
 * Multiple changes to abide by WordPress.org publication rules.

#### v0.0.1

 * Initial test release.
 * Still classed as being tested right now.

## Meta

 *  Version **0.0.4**
 *  Last updated **1 year ago**
 *  Active installations **10+**
 *  WordPress version ** 4.6 or higher **
 *  Tested up to **6.8.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/related-posts-neural-network/)
 * Tags
 * [artificial intelligence](https://su.wordpress.org/plugins/tags/artificial-intelligence/)
   [machine learning](https://su.wordpress.org/plugins/tags/machine-learning/)[neural network](https://su.wordpress.org/plugins/tags/neural-network/)
   [related](https://su.wordpress.org/plugins/tags/related/)[suggestions](https://su.wordpress.org/plugins/tags/suggestions/)
 *  [Advanced View](https://su.wordpress.org/plugins/related-posts-neural-network/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/related-posts-neural-network/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/related-posts-neural-network/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/related-posts-neural-network/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/related-posts-neural-network/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/related-posts-neural-network/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/related-posts-neural-network/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/related-posts-neural-network/reviews/)

## Contributors

 *   [ Neil T King ](https://profiles.wordpress.org/neiltking/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/related-posts-neural-network/)