{"id":113196,"date":"2011-08-08T08:00:00","date_gmt":"2011-08-08T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/most-and-least-read-posts-widget\/"},"modified":"2025-04-11T15:16:00","modified_gmt":"2025-04-11T15:16:00","slug":"most-and-least-read-posts-widget","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/most-and-least-read-posts-widget\/","title":{"rendered":"Most And Least Read Posts Widget"},"content":{"rendered":"<p>\u201cMost And Least Read Posts Widget\u201d is a free plugin for WordPress. developed by Giuliano Polverari (WhileTrue.it) to generate lists of the most and least read posts.<\/p>\n<p>The following options are customizable:<\/p>\n<ul>\n<li>number of posts to show<\/li>\n<li>exclude posts whose title contains certain words<\/li>\n<li>show post hits after the title (style customizable via CSS class)<\/li>\n<li>exclude posts older than XX days<\/li>\n<\/ul>\n<p>The plugin starts counting hits once activated, storing them in the \u201ccustom_total_hits\u201d custom field without the need of external accounts.<\/p>\n<p>The most popular web crawlers (e.g. Googlebot) are recognized and their hits discarded; also Admin hits are discarded.<\/p>\n<p>Archived post hits are shown in a column inside the backend post list.<\/p>\n<p>The plugin is compatible with multi-language WPML plugin, showing most\/least read posts for current language.<\/p>\n<p>Optionally, the number of hits can be shown inside the post content, with:<\/p>\n<ul>\n<li>a custom phrase, e.g. \u201cThis post has already been read XX times!\u201d<\/li>\n<li>a custom position (above the post, below the post, both)<\/li>\n<li>a custom CSS style<\/li>\n<\/ul>\n<p>If you want to show the post hits anywhere inside the template loop, you can the PHP function provided, e.g.:<\/p>\n<pre><code>echo most_and_least_read_posts_get_hits(get_the_ID());\n<\/code><\/pre>\n<h4>Shortcode<\/h4>\n<p>Also, [most_read_posts] a shortcode is available. Use it like this:<\/p>\n<pre><code>[most_read_posts type=\"most\" posts_number=\"5\" show_thumbs=\"false\" date_from=\"2016-01-01\" date_to=\"2016-04-30\"]\n<\/code><\/pre>\n<p>Shortcode attributes:<\/p>\n<ul>\n<li>type: \u201cmost\u201d or \u201cleast\u201d<\/li>\n<li>posts_number<\/li>\n<li>words_excluded<\/li>\n<li>title_max_chars<\/li>\n<li>excerpt_max_chars<\/li>\n<li>show_thumbs: \u201ctrue\u201d or \u201cfalse\u201d<\/li>\n<li>add_line_break_before_thumbs: \u201ctrue\u201d or \u201cfalse\u201d<\/li>\n<li>show_hits: \u201ctrue\u201d or \u201cfalse\u201d<\/li>\n<li>show_hits_text (default: \u201cviews\u201d)<\/li>\n<li>days_ago<\/li>\n<li>date_from and date_to: if set, overwrite the \u201cdays_ago\u201d attribute (format: YYYY-MM-DD)<\/li>\n<\/ul>\n<h4>Reference<\/h4>\n<p>For more informations: <a href=\"https:\/\/www.whiletrue.it\/most-and-least-read-posts-widget-for-wordpress\/\" title=\"www.whiletrue.it\" rel=\"nofollow ugc\">www.whiletrue.it<\/a><\/p>\n<p>Do you like this plugin? Give a chance to our other works:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.whiletrue.it\/really-simple-share-wordpress-plugin\/\" title=\"Good old Share\" rel=\"nofollow ugc\">Good old Share<\/a><\/li>\n<li><a href=\"https:\/\/www.whiletrue.it\/really-simple-twitter-feed-widget-for-wordpress\/\" title=\"Good old Twitter Feed Widget\" rel=\"nofollow ugc\">Good old Twitter Feed Widget<\/a><\/li>\n<li><a href=\"https:\/\/www.whiletrue.it\/tilted-tag-cloud-widget-per-wordpress\/\" title=\"Tilted Tag Cloud Widget\" rel=\"nofollow ugc\">Tilted Tag Cloud Widget<\/a><\/li>\n<li><a href=\"https:\/\/www.whiletrue.it\/reading-time-for-wordpress\/\" title=\"Reading Time\" rel=\"nofollow ugc\">Reading Time<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Provide two widgets, showing lists of the most and reast read posts.<\/p>\n","protected":false},"author":65,"featured_media":310189,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Most And Least Read Posts Widget - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Provide two widgets, showing lists of the most and reast read posts."},"footnotes":""},"categories":[1],"tags":[31704,31705,472,71,542],"class_list":["post-113196","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-least-read","tag-most-read","tag-popular-posts","tag-post","tag-posts"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/113196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=113196"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/113196\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/310189"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=113196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=113196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=113196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}