CM Tooltip (CMTG) - Related Articles - What are They and How to Add Them
Term Related Articles
Related Articles guides:
Related Articles are links that appear on your glossary term pages, which are responsible for referring the reader over to other pages or posts where that particular term has been used. They are available in the Pro, Pro+ and eCommerce editions.
TIP: When an Article is Related?
A page is considered a Related Article of a term when that term appears on it.
So, for instance, consider the term "WordPress". If the page has the term "WordPress" on it, that page will be considered a Related Article.
Table of Contents For This Article
- Video Guide
- Front-End Example
- Why Should I Use Related Terms
- Technical Details
- Example With Related Terms
Why Should I use Related Articles?
From a SEO perspective, related posts dramatically increase the number of internal links on your site, so utilizing this feature properly means that you gain a stronger internal link structure, which enhances SEO.
This feature can be create a big load on your server if not properly configured. Read the performance section in this article to learn how to optimize it.
Configuring the Related Articles On Tooltip
You can set if tooltips show links to related articles and, if so, how many.
Head to Admin Dashboard → CM Tooltip Glossary →Settings → Tooltips tab.
The relevant options are highlighted:
Configuring the Related Articles For ALL Pages
In the plugin settings under the Glossary Term tab you can find all the settings which are related to the Related Articles.
- Show related articles - Enable or disable related articles
- Order of the related articles by - Define how they will be ordered (menu order, post title, publish date, modified date)
- Number of related articles - Choose how many will be displayed (a higher number can affect performance)
- Open related articles in new tab - If disabled, they will be opened in the current browser tab (this option is not available in Pro version)
Index (can affect performance)
- Index rebuild interval / rebuild hour - Define if and when the index will refresh (higher frequencies can affect performance) (these options are not available in Pro version)
- Post types to index - Specify which post types will contribute to the index (bigger selection can affect performance)
- Related articles index rebuild chunk size - Set the chunk size of articles during the index rebuild (a high number can affect performance) (this option is not available in Pro version)
- Rebuild Index! - Rebuild the index manually
- Auto-add parsed pages to related articles index - If enabled, every time a page is accessed, it will be added to the index (can affect performance if enabled)
TIP: Improving Performance
Using the related articles feature increases the plugins use of memory and CPU processing. If you have more than 1000 articles you should consider the impact of this feature on your site performance.
To improve performance you can:
- Disable the automatic rebuild and do so only manually
- Reduce the interval time of the related articles rebuild.
- Show it only in terms and not in any kind of post posts.
- Disable auto-adding parsed pages to the index
- Controlling the chunk size - Since rebuilding the Glossary Index requires a lot of resources, both memory and time. It has to be done in chunks. The optimal size of the chunk depends on your server.
If the page goes blank after clicking the button, try to make this value much smaller and try to rebuild it again.
- Removing part of the custom posts from the related article index.
- Display the related article's excerpt - Only shows if any excerpt is available (this option is not available in Pro version)
- Paginate Related articles - Divides them into pages (this option is not available in Pro version)
- Maximum number of related articles - On each page (this option is not available in Pro version)
A background process (cron) is indexing all your pages and posts and building them into a table that contains all your related posts, pages and Glossary Terms.
Each time a term post is displayed, the related articles information is retrieved from the last time the table was created.
Example With Related Terms
Here’s an example of a term that uses both related articles and related terms: