Mô tả
Display the number of views for each one of your posts, as recorded by Jetpack Stats.
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. Open a new thread in the support forums to let me know!
Cài đặt
- Install the Jetpack plugin, and activate the Stats module.
- Install the Post Views for Jetpack plugin via the WordPress.org plugin directory, or via your dashboard.
- Activate the plugin.
- Enjoy! 🙂
Hỏi đáp
-
There are currently 4 ways to use the plugin
-
- You can use the
[jp_post_view]
shortcode anywhere in your posts and pages to display the number of views. - You can use the “All Time Site Stats” widget to display how many views your site got since you started using Jetpack Stats.
- You can use the shortcode in your theme files, like so:
<?php echo do_shortcode( '[jp_post_view]' ); ?>
. If you pick that option, I would recommend using a child theme instead of modifying your theme’s files. - You can use a functionality plugin like this one 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 this example, the counter will be displayed at the bottom of all posts, only on posts pages.
- You can use the
Đánh giá
Người đóng góp & Lập trình viên
“Post Views for Jetpack” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng góp“Post Views for Jetpack” đã được dịch qua 7 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.
Dịch “Post Views for Jetpack” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
1.5.0
Release Date: February 9, 2023
- Add a new filter,
jp_post_views_cache_duration
, allowing you to change the duration of the local cache for the post views.
1.4.0
Release Date: December 6, 2022
- Ensure full compatibility with Jetpack version 11.5 and above.
1.3.0
Release Date: July 1, 2020
- Fully rely on WordPress.org translation packs for translations.
1.2.0
Release Date: April 2, 2019
- Ensure the number of views is internationalized properly.
1.1.0
Release Date: November 18, 2016
- Releasing to the WordPress.org plugin directory.
1.0.0
- Initial release.