{"id":52160,"date":"2016-11-14T12:23:28","date_gmt":"2016-11-14T12:23:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/cherry-trending-posts\/"},"modified":"2019-05-07T11:11:40","modified_gmt":"2019-05-07T11:11:40","slug":"cherry-trending-posts","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/cherry-trending-posts\/","author":14179737,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.2","stable_tag":"1.0.2","tested":"5.1.0","requires":"4.5","requires_php":"","requires_plugins":"","header_name":"Cherry Trending Posts","header_author":"Zemez","header_description":"","assets_banners_color":"bd938d","last_updated":"2019-05-07 11:11:40","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/CherryFramework\/cherry-trending-posts","header_author_uri":"https:\/\/zemez.io\/wordpress\/","rating":2,"author_block_rating":0,"active_installs":2000,"downloads":80215,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":"1","4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1536274","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1536274","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1536274","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1536274","resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Widget settings"}},"plugin_section":[],"plugin_tags":[4132,166,2295,872,162],"plugin_category":[43,53],"plugin_contributors":[171121],"plugin_business_model":[],"class_list":["post-52160","plugin","type-plugin","status-closed","hentry","plugin_tags-popular","plugin_tags-posts","plugin_tags-rating","plugin_tags-views","plugin_tags-widget","plugin_category-customization","plugin_category-ratings-and-reviews","plugin_contributors-zemez","plugin_committers-templatemonster-2002"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/cherry-trending-posts_bd938d.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/cherry-trending-posts\/assets\/screenshot-1.png?rev=1536274","caption":"Widget settings"}],"raw_content":"<!--section=description-->\n<p>This plugin will allow you to track and display the most popular posts of your WordPress website based on the number of views, rating and the number of comments; and thus increase its view-per-visitor rate.<\/p>\n\n<p>The plugin comprises three main components:<\/p>\n\n<ul>\n<li><strong>Post Views Counter<\/strong> \u2013 displays the number of page views for each post;<\/li>\n<li><strong>Post Rating<\/strong> \u2013 displays the number of votes and the average rating using a visual five-star system;<\/li>\n<li><strong>Widget<\/strong> \u2013 shows the most popular posts.<\/li>\n<\/ul>\n\n<h3>Documentation<\/h3>\n\n<h4>Options<\/h4>\n\n<p>You can place the list of your top posts on any page using the Widgets tab in your WordPress dashboard.\nThe Cherry Trending Posts widget itself is highly customizable: besides the basic settings such as specifying the widget title and setting the maximum displayed length of a post title you can:<\/p>\n\n<ul>\n<li>Filter the posts by their <em>views<\/em>, <em>comments<\/em> or <em>rating<\/em>;<\/li>\n<li>Choose, whether to show the <em>most rated<\/em> or the <em>highest rated<\/em> posts;<\/li>\n<li>Show post from specific tags and categories;<\/li>\n<li>Display or hide certain metadata (post author, publishing date, rating, comments, etc.);<\/li>\n<li>Set the excerpt length (if displayed);<\/li>\n<li>Change the button text;<\/li>\n<li>And more.<\/li>\n<\/ul>\n\n<h4>Widget<\/h4>\n\n<p>You can add the posts to the pages with the help of widget which offers you the following settings.<\/p>\n\n<ol>\n<li><strong>Title<\/strong> - Specify the widget title<\/li>\n<li><strong>Title length<\/strong> in characters (0 -- hide, -1 -- full)  - Set title length<\/li>\n<li><strong>Filter by<\/strong>:\n\n<ul>\n<li><em>Views<\/em> - Filter posts by Views<\/li>\n<li><em>Rating<\/em> - Filter posts by Rating<\/li>\n<li><em>Comments<\/em> - Filter posts by Comments<\/li>\n<\/ul><\/li>\n<li><strong>Select rating type<\/strong>:\n\n<ul>\n<li><em>Most Rated<\/em> - Filter posts by Most Rated type<\/li>\n<li><em>Highest Rated<\/em> - Filter posts by the highest rate<\/li>\n<\/ul><\/li>\n<li><strong>Show from<\/strong>:\n\n<ul>\n<li><em>Category<\/em> - Show posts from category<\/li>\n<li><em>Tag<\/em> - Show posts by tags<\/li>\n<\/ul><\/li>\n<li><strong>Number of post to show<\/strong> (Use -1 to show all posts) - Here you can define the number of posts to display<\/li>\n<li><strong>Offset<\/strong> (ignored when <code>\"posts_per_page\" =&gt; -1<\/code> (show all posts) is used) - This property specifies the number of post to displace or pass over<\/li>\n<li><strong>Excerpt length<\/strong> in words (0 -- hide, -1 -- all) - This property sets the number of words limit for excerpt<\/li>\n<li><strong>Display meta<\/strong> - This feature adds metadata to the post:\n\n<ul>\n<li><em>Date<\/em><\/li>\n<li><em>Author<\/em><\/li>\n<li><em>View<\/em><\/li>\n<li><em>Rating<\/em><\/li>\n<li><em>Comments<\/em><\/li>\n<li><em>Category<\/em><\/li>\n<li><em>Tag<\/em><\/li>\n<li><em>Read More<\/em><\/li>\n<\/ul><\/li>\n<li><strong>Button text<\/strong> - Add text to the button<\/li>\n<\/ol>\n\n<h4>Cache<\/h4>\n\n<p>If any of the cache plugins is used on the website, for a proper operation of the post ratings counter, you need to add the following code to the <strong>functions.php<\/strong> file:<\/p>\n\n<pre><code>add_filter( 'cherry_trend_posts_cache_fix', '__return_true' );\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload cherry-trending-posts folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<p>And of course, you will find new 'Cherry Trending Posts' widget in 'Appearance - Widgets' menu in your WordPress admin panel.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>How to use?<\/dt>\n<dd><p>It is not enough to install and activate the plugin to make it work properly. You also need to add 2 actions to the template.<\/p>\n\n<ol>\n<li><code>do_action( 'cherry_trend_posts_display_rating' )<\/code> \/ <code>do_action( 'cherry_trend_posts_return_rating' )<\/code> - display \/ return HTML for ratings<\/li>\n<li><code>do_action( 'cherry_trend_posts_display_views' )<\/code> \/ <code>do_action( 'cherry_trend_posts_return_views' )<\/code> - display \/ return HTML for post views counter<\/li>\n<\/ol>\n\n<p>For example, in the twentysixteen template you need to add the actions to the <strong>template-parts\/content-single.php<\/strong> file. In your template the actions can be stored in a different file.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Adds rating and views count for posts and custom post types.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/52160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=52160"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/templatemonster-2002"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=52160"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=52160"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=52160"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=52160"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=52160"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=52160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}