{"id":52162,"date":"2016-10-17T17:28:09","date_gmt":"2016-10-17T17:28:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/post-views-for-jetpack\/"},"modified":"2025-04-25T08:05:19","modified_gmt":"2025-04-25T08:05:19","slug":"post-views-for-jetpack","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/post-views-for-jetpack\/","author":6790328,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5.0","stable_tag":"1.5.0","tested":"6.8.5","requires":"6.0","requires_php":"5.6","requires_plugins":null,"header_name":"Post Views for Jetpack","header_author":"Jeremy Herve","header_description":"","assets_banners_color":"938d90","last_updated":"2025-04-25 08:05:19","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/jeremy.hu\/jetpack-post-views\/","header_author_uri":"https:\/\/jeremy.hu","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":24794,"num_ratings":13,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"jeherve","date":"2017-03-31 11:23:46"},"1.2.0":{"tag":"1.2.0","author":"jeherve","date":"2020-03-09 07:40:56"},"1.3.0":{"tag":"1.3.0","author":"jeherve","date":"2022-06-13 17:46:03"},"1.4.0":{"tag":"1.4.0","author":"jeherve","date":"2022-12-06 18:32:06"},"1.5.0":{"tag":"1.5.0","author":"jeherve","date":"2025-04-25 08:05:19"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":13},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":1518414,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1518414,"resolution":"1544x500","location":"assets","locale":""},"banner-1880x609.png":{"filename":"banner-1880x609.png","revision":1518414,"resolution":"1880x609","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1518414,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0","1.2.0","1.3.0","1.4.0","1.5.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1075,5990,522,872],"plugin_category":[],"plugin_contributors":[77538],"plugin_business_model":[],"class_list":["post-52162","plugin","type-plugin","status-publish","hentry","plugin_tags-jetpack","plugin_tags-post-views","plugin_tags-stats","plugin_tags-views","plugin_contributors-jeherve","plugin_committers-jeherve"],"banners":{"banner":"https:\/\/ps.w.org\/post-views-for-jetpack\/assets\/banner-772x250.png?rev=1518414","banner_2x":"https:\/\/ps.w.org\/post-views-for-jetpack\/assets\/banner-1544x500.png?rev=1518414","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/post-views-for-jetpack\/assets\/icon-256x256.png?rev=1518414","icon_2x":"https:\/\/ps.w.org\/post-views-for-jetpack\/assets\/icon-256x256.png?rev=1518414","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Display the number of views for each one of your posts, as recorded by Jetpack Stats.<\/p>\n\n<p>This is still a work in progress, and I would love to know what you'd like this plugin, where you would like to display those post views. <a href=\"https:\/\/wordpress.org\/support\/plugin\/post-views-for-jetpack\">Open a new thread in the support forums<\/a> to let me know!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the Jetpack plugin, and activate the Stats module.<\/li>\n<li>Install the Post Views for Jetpack plugin via the WordPress.org plugin directory, or via your dashboard.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Enjoy! :)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='there%20are%20currently%204%20ways%20to%20use%20the%20plugin'><h3>There are currently 4 ways to use the plugin<\/h3><\/dt>\n<dd><ol>\n<li>You can use the <code>[jp_post_view]<\/code> shortcode anywhere in your posts and pages to display the number of views.<\/li>\n<li>You can use the \"All Time Site Stats\" widget to display how many views your site got since you started using Jetpack Stats.<\/li>\n<li>You can use the shortcode in your theme files, like so: <code>&lt;?php echo do_shortcode( '[jp_post_view]' ); ?&gt;<\/code>. If you pick that option, I would recommend using a <a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\">child theme<\/a> instead of modifying your theme's files.<\/li>\n<li>You can use a functionality plugin like <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">this one<\/a> to add a custom code snippet to your site without making changes to your theme. In that code snippet, you can decide on which pages the post views should be displayed. In <a href=\"https:\/\/gist.github.com\/jeherve\/6328c232f91977a6924805d93490c152\">this example<\/a>, the counter will be displayed at the bottom of all posts, only on posts pages.<\/li>\n<\/ol><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.5.0<\/h4>\n\n<p>Release Date: February 9, 2023<\/p>\n\n<ul>\n<li>Add a new filter, <code>jp_post_views_cache_duration<\/code>, allowing you to change the duration of the local cache for the post views.<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<p>Release Date: December 6, 2022<\/p>\n\n<ul>\n<li>Ensure full compatibility with Jetpack version 11.5 and above.<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<p>Release Date: July 1, 2020<\/p>\n\n<ul>\n<li>Fully rely on WordPress.org translation packs for translations.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<p>Release Date: April 2, 2019<\/p>\n\n<ul>\n<li>Ensure the number of views is internationalized properly.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<p>Release Date: November 18, 2016<\/p>\n\n<ul>\n<li>Releasing to the WordPress.org plugin directory.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Display the number of views for each one of your posts, as recorded by Jetpack Stats.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/52162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=52162"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jeherve"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=52162"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=52162"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=52162"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=52162"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=52162"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=52162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}