文章浏览次数统计插件-post view counter

本文探讨了在WordPress站点上使用纯代码和PostViewsCounter插件来追踪文章或页面的浏览量。PostViewsCounter提供多种计数模式并允许保留所有浏览记录。

WordPress 站点的文章或页面浏览量计数方面,我们可以通过纯代码实现,也可以通过 WordPress 插件实现,比如 Post Views Counter 插件可以让我们以简单、快速、可靠的方式显示文章、页面或自定义文章类型的浏览次数,而且还提供了 PHP、Javascript、Fast AJAX 和 REST API 共 4 种计数模式以应对各种场合,使用也非常的简单。

post view counter

post view

需要注意的一点是,如果要保留所有文章浏览量,则需要将“重置数据间隔”设置为 0,这样 Post Views Counter 插件会保留所有文章浏览量。

我在WP Delicous看到的段代码有:[dr_recipe_archives num_posts=10 carousel=true] [dr_recipe_archives num_posts=10 carousel=true] Use [dr_recipe_archives num_posts=x carousel=true] to display the recipes in carousel format. [dr_recipe_archives layout=list num_posts=3] Use [dr_recipe_archives layout=list num_posts=x] to display the recipes in list format. [dr_recipe_archives taxonomy="recipe-course" term="breakfast" num_posts=6] Use [dr_recipe_archives taxonomy="x" term="x" num_posts=x] to display the recipes in grid format from recipe course breakfast. You can replace taxonomy, terms and num_posts with desired value. For more, please refer to this demo. [dr_recipe_equipments] Use [dr_recipe_equipments num_posts=x] to display x equipment. By default, all equipment are shown. [DR_AFFILIATE_DISCLOSURE] Use [DR_AFFILIATE_DISCLOSURE] to display Affiliate Disclosure anywhere on your website. [dr_guest_recipe_submission] Use [dr_guest_recipe_submission] to display a Recipe Submission form on any post/page. [dr_submit_recipe] Use [dr_submit_recipe] to display a Recipe Submission form on any post/page. [dr_my_recipes] Use [dr_my_recipes] to display all recipes submitted by the user. [dr_all_recipes] Use [dr_all_recipes] to display all recipes on any post/page. [dr_favorites_recipes] Use [dr_favorites_recipes] to display all favorite recipes on any post/page. [dr_edit_profile] Use [dr_edit_profile] to display the Edit Profile form on any post/page. [dr_login] Use [dr_login] to display the Login form on any post/page.所以怎么才能在wordpress的食谱页面添加WP Delicous浏览
03-28
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值