Product type: Wordpress Plugin
CP Related Posts
Installation
To install CP Related Posts, follow these steps:
- Download and unzip the plugin
- Upload the entire "cp-related-posts" directory to the "/wp-content/plugins /" directory
- Activate the plugin through the 'Plugins' menu in "WordPress"
- Go to Settings > CP Related Posts and set up your plugin
Another way to install the plugin.
- Go to the plugins section in your WordPress
- Press the "Add New" button at beginning of page
- Search by the plugin name CP Related Posts and install it
Setting up CP Related Posts
The plugin has several setup options to have a great control over related posts. Among the available configuration options you will find:
- Number of related posts
- Post types that admit related posts (the free version of plugi allows only the posts and pages)
- Display percentage of similarity with the symbol... the option allows to select the symbol to represent the similarity between posts
- Display related posts with a percentage of similarity bigger than. Allows to define an acceptable percentage of similarity
Display options for the related posts on the individual post/page
- Display related posts in single pages (checkbox to display or hide the related posts from single pages)
- Display featured images in related posts
- Display percentage of similarity
- Display excerpt of related posts
- Display related terms between related posts
- Display mode (select the layout for related posts)
How to display related posts in multiple-posts pages
- Display related posts in multiple-posts pages
- Display only in homepage
- Exclude the related posts from homepage
- Display the related posts only in specific pages
- Exclude the related posts from specific pages
- Display featured images in related posts
- Display percentage of similarity
- Display excerpt of related posts
- Display related terms between related posts
- Display mode (select the layout for related posts)
Tip: After the initial setup of the plugin, it is recommended to press the button "Process Previous Posts" in order to extract the terms of the posts created before installing the plugin.
The way to use CP Related Post from the posts edition
On the Editing screen of each post, page, or post type selected in the plugin's settings, you will see a new form that allows you to create direct links between the post being edited and other posts on the website, as well as allowing to extract relevant terms within the text of the post and select them for use as tags of the post in question.
After type the post's content, press the "Get Recommended Tags" button, to extract all terms (with its weight, form the sections of post). If the user want to increase the importance of specifics terms, only is required check them.
If you want insert relevant terms that are not present in the post's content, define it as a post's tag.
It is possible associate posts manually. Type the terms and press the "Search" button. In the Items found section will be displayed the list of posts/pages that include the term. Select the posts/pages to associate manually.
Note: The posts associated manually represent the most strong relation.
It is possible exclude a post from the list of related posts, with only check the option: "Exclude this post from others related posts", or hide the related posts from a post through the option: "Hide the related posts from this post"
Google AdSense
The plugin allows you to insert Google Ads between related posts. Enable the Google AdSense from the plugin settings page, and enter the Google AdSense client and unit. In addition, the ads section allows you to configure the location of the ads into the list of related posts. Furthermore, if the Borlabs Cookies plugin is installed on your WordPress, our plugin hides the Google ads until the user accepts the Google AdSense cookies.
Shortcode
The plugin displays by default the related posts at the end of the posts' contents. However, it is possible to insert the [cp-related-posts] shortcode into different places of contents to display the related posts in them.
The shortcode's attributes are:
post_id, if it is not passed to the shortcode, would be displayed the posts related to the current post. [cp-related-posts post_id="123"]
number, the number of related posts to display. By default would be displayed the number of related posts in the plugin's settings. [cp-related-posts number="3"]
mode, allows to select the mode to display the related posts. To possible values are: list, column, slider, and accordion. [cp-related-posts mode="slider"]
posts, allow to select the related posts by their ids separated by comma symbols. By default would be displayed the posts related with the current post or page. [cp-related-posts posts="12,54,33"]
Filters called by CP Related Posts
cprp_post_thumbnail: Requires two parameters, a link tag with the thumbnail, and the object with the post's data.
cprp_post_title: Requires two parameters, a div tag with the post title, and the object with the post's data.
cprp_post_percentage: Requires two parameters, a div tag with the percentage of similarity, and the object with the post's data.
cprp_post_excerpt: Requires two parameters, the text of generated excerpt, and the object with the post's data.
cprp_post_tags: Requires two parameters, a div tag with the tags assigned to the post, and the object with the post's data.
cprp_content: Requires two parameters, the html tags of the generated related posts, and an array with the objects of related posts.