{"id":414369,"date":"2026-11-27T10:06:22","date_gmt":"2026-11-27T10:06:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/tivy-popular-posts\/"},"modified":"2026-11-27T10:56:12","modified_gmt":"2026-11-27T10:56:12","slug":"tivy-popular-posts","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/tivy-popular-posts\/","author":23598090,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.4","stable_tag":"1.0.4","tested":"7.2","requires":"6.3","requires_php":"7.4","requires_plugins":null,"header_name":"Tivy Popular Posts","header_author":"Tivy","header_description":"Show your most-read posts and pages, like Jetpack's Top Posts, with privacy-friendly view counting: no cookies, no IP addresses, no external services.","last_updated":"2026-11-27 10:56:12","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/tivy.co\/popular-posts\/","header_author_uri":"https:\/\/tivy.co\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":26,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.4":{"tag":"1.0.4","author":"tivy","date":"2026-11-27 10:56:12","revision":3829304}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3829191,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3829191,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3829191,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"tivy\/popular-posts":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"tivy\/popular-posts","version":"1.0.4","title":"Popular Posts","category":"widgets","icon":"chart-line","description":"Your most-read posts and pages, counted privately.","keywords":["popular","top posts","most read","trending","views"],"textdomain":"tivy-popular-posts","attributes":{"number":{"type":"number","default":0},"days":{"type":"number","default":-1},"postTypes":{"type":"string","default":""},"style":{"type":"string","default":"numbered","enum":["numbered","list"]},"showViews":{"type":"boolean","default":false},"thumbnails":{"type":"boolean","default":false},"excludeCurrent":{"type":"boolean","default":false}},"supports":{"html":false,"align":["wide","full"],"color":{"text":true,"background":true,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true}},"editorScript":"file:.\/index.js","style":"tivy-pp"}},"tagged_versions":["1.0.4"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"A numbered Popular Posts list in a sidebar.","2":"With featured images and view counts.","3":"Settings \u2192 Popular Posts, with today's, this week's and this month's top posts."}},"plugin_section":[],"plugin_tags":[20340,1086,396,30841,3580],"plugin_category":[54],"plugin_contributors":[291194],"plugin_business_model":[],"class_list":["post-414369","plugin","type-plugin","status-publish","hentry","plugin_tags-most-viewed","plugin_tags-popular-posts","plugin_tags-privacy","plugin_tags-top-posts","plugin_tags-trending","plugin_category-security-and-spam-protection","plugin_contributors-tivy","plugin_committers-tivy"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/tivy-popular-posts\/assets\/icon.svg?rev=3829191","icon":"https:\/\/ps.w.org\/tivy-popular-posts\/assets\/icon.svg?rev=3829191","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Missing the Top Posts list from Jetpack? Tivy Popular Posts counts views on your own site and shows your most-read posts as a numbered list, in a sidebar, under an article or on a \"best of\" page.<\/p>\n\n<p><strong>Private by design<\/strong><\/p>\n\n<ul>\n<li>No cookies, no IP addresses, no browser details stored<\/li>\n<li>Only a daily total per post is kept, nothing about the visitor<\/li>\n<li>No external services: everything stays in your own database<\/li>\n<li>Suggested privacy policy wording added to Settings \u2192 Privacy<\/li>\n<\/ul>\n\n<p><strong>Works with page caching<\/strong><\/p>\n\n<p>Many popular-post plugins only count visits that reach PHP, so they miss most views on cached sites. Tivy Popular Posts counts from the browser with a tiny script (under 1 KB, no jQuery), so it works with Cloudflare, WP-Optimize, WP Rocket and other caches.<\/p>\n\n<p><strong>Accurate counts<\/strong><\/p>\n\n<ul>\n<li>Known bots and crawlers are ignored<\/li>\n<li>Each post is counted once per visit, however many times it's reloaded<\/li>\n<li>Your own visits aren't counted while you're logged in as an editor or administrator<\/li>\n<li>Prerendered pages are only counted if the visitor actually opens them<\/li>\n<\/ul>\n\n<p><strong>Flexible display<\/strong><\/p>\n\n<ul>\n<li>Any period: today, this week, this month, this year or all time<\/li>\n<li>Numbered or plain list, with or without featured images and view counts<\/li>\n<li>Posts, pages or any public post type<\/li>\n<li>Leave out the post being read, or specific posts<\/li>\n<li>Your front page and posts page are left out automatically<\/li>\n<li>A block, a shortcode and PHP template tags<\/li>\n<li>Inherits your theme's fonts and colours<\/li>\n<\/ul>\n\n<p><strong>View counter on posts<\/strong><\/p>\n\n<p>Show \"1,234 views\" on each post, automatically before or after the content, or wherever you like with the <code>[tivy_post_views]<\/code> shortcode.<\/p>\n\n<p><strong>Light on your database<\/strong><\/p>\n\n<p>One small row per post per day. Old rows are pruned automatically (after 400 days by default), and lists are cached for ten minutes.<\/p>\n\n<h3>Usage<\/h3>\n\n<pre><code>[tivy_popular_posts]\n[tivy_popular_posts number=\"10\" days=\"7\"]\n[tivy_popular_posts days=\"0\" show_views=\"yes\"]\n[tivy_popular_posts thumbnails=\"yes\" style=\"list\" exclude_current=\"yes\"]\n<\/code><\/pre>\n\n<p>Attributes (all optional, defaults from Settings \u2192 Popular Posts):<\/p>\n\n<ul>\n<li><code>number<\/code>: how many posts (1\u201350)<\/li>\n<li><code>days<\/code>: period in days; <code>1<\/code> = today, <code>0<\/code> = all time<\/li>\n<li><code>post_type<\/code>: comma list, e.g. <code>post,page<\/code><\/li>\n<li><code>show_views<\/code>: <code>yes<\/code> or <code>no<\/code><\/li>\n<li><code>thumbnails<\/code>: <code>yes<\/code> to show featured images<\/li>\n<li><code>style<\/code>: <code>numbered<\/code> or <code>list<\/code><\/li>\n<li><code>exclude<\/code>: comma list of post IDs to leave out<\/li>\n<li><code>exclude_current<\/code>: <code>yes<\/code> to leave out the post being read<\/li>\n<li><code>empty<\/code>: text shown before any views are recorded<\/li>\n<li><code>class<\/code>: extra CSS classes<\/li>\n<li><code>debug<\/code>: <code>yes<\/code> shows administrators the attributes the shortcode received<\/li>\n<\/ul>\n\n<p><strong>View counter<\/strong><\/p>\n\n<pre><code>[tivy_post_views] shows the current post's views. Attributes: `id` (another post), `days` (`0` = all time), `label` (`no` for just the number).\n<\/code><\/pre>\n\n<p><strong>Template tags<\/strong><\/p>\n\n<pre><code>&lt;?php tivy_pp_popular_posts( array( 'number' =&gt; 5, 'days' =&gt; 7 ) ); ?&gt;\n&lt;?php $items = tivy_pp_get_popular( array( 'days' =&gt; 30 ) ); ?&gt; returns an array of `array( 'post' =&gt; WP_Post, 'views' =&gt; int )`.\n&lt;?php tivy_pp_post_views(); ?&gt; echoes \"1,234 views\" for the current post; `tivy_pp_get_post_views( $post_id, $days )` returns the number.\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin. Counting starts straight away.<\/li>\n<li>Go to <strong>Settings \u2192 Popular Posts<\/strong> to choose what's counted and your display defaults.<\/li>\n<li>Add the <strong>Popular Posts<\/strong> block, or the <code>[tivy_popular_posts]<\/code> shortcode, wherever you want the list.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"when%20will%20the%20list%20show%20something%3F\"><h3>When will the list show something?<\/h3><\/dt>\n<dd><p>As soon as posts are viewed. A new install starts from zero; it doesn't import history from other plugins.<\/p><\/dd>\n<dt id=\"do%20i%20need%20to%20mention%20it%20in%20my%20privacy%20policy%3F\"><h3>Do I need to mention it in my privacy policy?<\/h3><\/dt>\n<dd><p>It stores no personal data and sets no cookies. Suggested wording is added to Settings \u2192 Privacy if you'd like to mention it anyway.<\/p><\/dd>\n<dt id=\"can%20counts%20be%20faked%3F\"><h3>Can counts be faked?<\/h3><\/dt>\n<dd><p>The counter is public by design, so a determined person could add views. Normal visitors, reloads and known bots won't distort the figures.<\/p><\/dd>\n<dt id=\"will%20it%20slow%20my%20site%20down%3F\"><h3>Will it slow my site down?<\/h3><\/dt>\n<dd><p>Each view adds one tiny background request and one database write. Lists are cached for ten minutes, so showing them is fast.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20page%20caching%3F\"><h3>Does it work with page caching?<\/h3><\/dt>\n<dd><p>Yes. Counting happens in the visitor's browser, so cached pages are counted too.<\/p><\/dd>\n<dt id=\"can%20developers%20change%20what%27s%20counted%3F\"><h3>Can developers change what's counted?<\/h3><\/dt>\n<dd><p>Yes. Filters: <code>tivy_pp_count_view<\/code> (whether a view counts), <code>tivy_pp_is_bot<\/code> (bot detection).<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Settings page: add-ons can show their own section above Reset.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>New: per-post view counter \u2013 <code>[tivy_post_views]<\/code>, template tags, and an option to show it before or after post content.<\/li>\n<li>List markup is now shared with add-ons.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Code tidy-up for Plugin Check (no change in behaviour).<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>The front page and posts page are left out of lists by default (setting to include them).<\/li>\n<li>An empty or unreadable post_type now falls back to your settings instead of listing every type.<\/li>\n<li>New debug attribute to show administrators what the shortcode received.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Show your most-read posts and pages, with private view counting: no cookies, no IP addresses, no external services.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/414369","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=414369"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tivy"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=414369"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=414369"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=414369"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=414369"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=414369"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=414369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}