Skip to content

Commit

Permalink
Tagged v3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Nov 19, 2022
1 parent 63422fe commit ab97eea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
2 changes: 1 addition & 1 deletion contextual-related-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Plugin Name: Contextual Related Posts
* Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
* Description: Display related posts on your website or in your feed. Increase reader retention and reduce bounce rates
* Version: 3.3.0-beta2
* Version: 3.3.0
* Author: WebberZone
* Author URI: https://webberzone.com
* License: GPL-2.0+
Expand Down
31 changes: 2 additions & 29 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,33 +129,6 @@ If you enable thumbnails, the plugin will try to find the correct thumbnail in t

7. Default Thumbnail: If enabled, it will use the default thumbnail that you specify in the Settings page

= Template tags =

The following functions are available in case you wish to do a manual install of the posts by editing the theme files.

**echo_crp( $args = array() )**

Echoes the list of posts wherever you add the this function. You can also use this function to display related posts on any type of page generated by WordPress including homepage and archive pages.

Usage: `<?php if ( function_exists( 'echo_crp' ) ) { echo_crp(); } ?>` to your template file where you want the related posts to be displayed.

**get_crp_posts_id( $args = array() )**

Takes a post ID and returns the related post IDs as an object.

Usage: `<?php if ( function_exists( 'get_crp_posts_id' ) ) { get_crp_posts_id( array(
'postid' => $postid,
'limit' => $limit,
) ); } ?>`

Parameters:

*$postid* : The ID of the post you'd like to fetch. By default the current post is fetched. Use within the Loop for best results.

*$limit* : Maximum number of posts to return. The actual number displayed may be lower depending on the matching algorithm and the category / post exclusion settings.

This is not an exhaustive set of Parameters. For the full list of Parameters check out the shortcode FAQ below.

= Shortcodes =

You can insert the related posts anywhere in your post using the `[crp]` shortcode. View [this article in the knowledge base](https://webberzone.com/support/knowledgebase/contextual-related-posts-shortcode/) for more details.
Expand Down Expand Up @@ -237,5 +210,5 @@ For the changelog of earlier versions, please refer to the separate changelog.tx

== Upgrade Notice ==

= 3.2.3 =
Bug fixes. Please read the release post on https://webberzone.com
= 3.3.0 =
Block updates and new settings. Please read the release post on https://webberzone.com

0 comments on commit ab97eea

Please sign in to comment.