{"id":14013,"date":"2011-08-08T21:33:15","date_gmt":"2011-08-08T21:33:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/most-and-least-read-posts-widget\/"},"modified":"2025-04-11T07:16:20","modified_gmt":"2025-04-11T07:16:20","slug":"most-and-least-read-posts-widget","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/most-and-least-read-posts-widget\/","author":7486869,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.5.21","stable_tag":"2.5.21","tested":"6.8.5","requires":"2.9","requires_php":"7.0","requires_plugins":null,"header_name":"Most and Least Read Posts Widget","header_author":"WhileTrue","header_description":"","assets_banners_color":"f2d6d2","last_updated":"2025-04-11 07:16:20","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.whiletrue.it\/","header_plugin_uri":"https:\/\/www.whiletrue.it\/","header_author_uri":"https:\/\/www.whiletrue.it\/","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":92697,"num_ratings":6,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"whiletrue","date":"2011-08-08 21:33:15"},"2.5.21":{"tag":"2.5.21","author":"whiletrue","date":"2025-04-11 07:16:20"},"2.5.5":{"tag":"2.5.5","author":"whiletrue","date":"2016-05-18 14:48:23"}},"upgrade_notice":{"1.0.0":"<p>Initial release<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"6"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1294899,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1294899,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1294914,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1294914,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","2.5.21","2.5.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":853204,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":853204,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":853204,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":853204,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Sample Widget on site, plain wiew","2":"Sample Widget on site, with post hits and thumbs","3":"Options available in the Admin Widget box","4":"Options available in the Admin Settings menu"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[44000,43999,1086,86,166],"plugin_category":[43],"plugin_contributors":[78718],"plugin_business_model":[],"class_list":["post-14013","plugin","type-plugin","status-publish","hentry","plugin_tags-least-read","plugin_tags-most-read","plugin_tags-popular-posts","plugin_tags-post","plugin_tags-posts","plugin_category-customization","plugin_contributors-whiletrue","plugin_committers-whiletrue"],"banners":{"banner":"https:\/\/ps.w.org\/most-and-least-read-posts-widget\/assets\/banner-772x250.png?rev=1294914","banner_2x":"https:\/\/ps.w.org\/most-and-least-read-posts-widget\/assets\/banner-1544x500.png?rev=1294914","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/most-and-least-read-posts-widget\/assets\/icon-128x128.png?rev=1294899","icon_2x":"https:\/\/ps.w.org\/most-and-least-read-posts-widget\/assets\/icon-256x256.png?rev=1294899","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/most-and-least-read-posts-widget\/assets\/screenshot-1.png?rev=853204","caption":"Sample Widget on site, plain wiew"},{"src":"https:\/\/ps.w.org\/most-and-least-read-posts-widget\/assets\/screenshot-2.png?rev=853204","caption":"Sample Widget on site, with post hits and thumbs"},{"src":"https:\/\/ps.w.org\/most-and-least-read-posts-widget\/assets\/screenshot-3.png?rev=853204","caption":"Options available in the Admin Widget box"},{"src":"https:\/\/ps.w.org\/most-and-least-read-posts-widget\/assets\/screenshot-4.png?rev=853204","caption":"Options available in the Admin Settings menu"}],"raw_content":"<!--section=description-->\n<p>\"Most And Least Read Posts Widget\" is a free plugin for Wordpress. developed by Giuliano Polverari (WhileTrue.it) to generate lists of the most and least read posts.<\/p>\n\n<p>The following options are customizable:<\/p>\n\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\n<p>The plugin starts counting hits once activated, storing them in the \"custom_total_hits\" custom field without the need of external accounts.<\/p>\n\n<p>The most popular web crawlers (e.g. Googlebot) are recognized and their hits discarded; also Admin hits are discarded.<\/p>\n\n<p>Archived post hits are shown in a column inside the backend post list.<\/p>\n\n<p>The plugin is compatible with multi-language WPML plugin, showing most\/least read posts for current language.<\/p>\n\n<p>Optionally, the number of hits can be shown inside the post content, with:<\/p>\n\n<ul>\n<li>a custom phrase, e.g. \"This post has already been read XX times!\"<\/li>\n<li>a custom position (above the post, below the post, both)<\/li>\n<li>a custom CSS style<\/li>\n<\/ul>\n\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\n<pre><code>echo most_and_least_read_posts_get_hits(get_the_ID());\n<\/code><\/pre>\n\n<h4>Shortcode<\/h4>\n\n<p>Also, [most_read_posts] a shortcode is available. Use it like this:<\/p>\n\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\n<p>Shortcode attributes:<\/p>\n\n<ul>\n<li>type: \"most\" or \"least\"<\/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: \"true\" or \"false\"<\/li>\n<li>add_line_break_before_thumbs: \"true\" or \"false\"<\/li>\n<li>show_hits: \"true\" or \"false\"<\/li>\n<li>show_hits_text (default: \"views\")<\/li>\n<li>days_ago<\/li>\n<li>date_from and date_to: if set, overwrite the \"days_ago\" attribute (format: YYYY-MM-DD)<\/li>\n<\/ul>\n\n<h4>Reference<\/h4>\n\n<p>For more informations: <a href=\"https:\/\/www.whiletrue.it\/most-and-least-read-posts-widget-for-wordpress\/\" title=\"www.whiletrue.it\">www.whiletrue.it<\/a><\/p>\n\n<p>Do you like this plugin? Give a chance to our other works:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/www.whiletrue.it\/really-simple-share-wordpress-plugin\/\" title=\"Good old Share\">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\">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\">Tilted Tag Cloud Widget<\/a><\/li>\n<li><a href=\"https:\/\/www.whiletrue.it\/reading-time-for-wordpress\/\" title=\"Reading Time\">Reading Time<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Best is to install directly from WordPress. If manual installation is required, please make sure to put all of the plugin files in a folder named <code>most_and_least_read_posts_widget<\/code> (not two nested folders) in the plugin directory, then activate the plugin through the <code>Plugins<\/code> menu in WordPress.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='i%20get%20an%20error%20message%20that%20says%20%22no%20results%20available%22'><h3>I get an error message that says \"no results available\"<\/h3><\/dt>\n<dd><p>The plugin starts collecting hits once installed, so there are \"no results available\" for a short time, until the first data is stored. \nIt's better to show the widget some hours (or days) after having installed it.<\/p><\/dd>\n<dt id='the%20same%20post%20shows%20up%20multiple%20times'><h3>The same post shows up multiple times<\/h3><\/dt>\n<dd><p>This uncommon issue can be caused by duplicated custom fields in some posts. \nTo solve it, inspect the post custom fields and delete unnecessary duplicates of the \"custom_total_hits\" field.<\/p><\/dd>\n<dt id='can%20i%20customize%20the%20thumbs%3F'><h3>Can I customize the thumbs?<\/h3><\/dt>\n<dd><p>Yes, you can do it editing the \"mlrp_ul\" class in your template style.css file.\nE.g. 50x50 pixels images, floating on the right:\n.mlrp_ul img { width: 50px; height: 50px; float: right; }<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.5.21<\/h4>\n\n<ul>\n<li>Plugin tested up WordPress 6.8<\/li>\n<li>Fixed: XSS vulnerability<\/li>\n<\/ul>\n\n<h4>2.5.5<\/h4>\n\n<ul>\n<li>Added: New \"Add line break before thumb\", \"Limit post titles to X chars\" and \"Show post excerpts\" options<\/li>\n<li>Added: internationalization<\/li>\n<li>Added: [most_read_posts] shortcode<\/li>\n<li>Added: Use the comma \",\" for thousands digits<\/li>\n<li>Added: Append a custom text (e.g. the word \"views\") next to total hits<\/li>\n<li>Added: WhileTrue RSS Feed<\/li>\n<li>Changed: web spiders update<\/li>\n<li>Changed: Avangate ads removal<\/li>\n<li>Changed: Skip updating hits if user is admin<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<p>Initial release<\/p>","raw_excerpt":"Provide two widgets, showing lists of the most and reast read posts.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14013"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/whiletrue"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14013"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14013"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14013"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14013"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14013"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}