开发者 | whiletrue |
---|---|
更新时间 | 2024年10月17日 15:08 |
捐献地址: | 去捐款 |
PHP版本: | 7.0 及以上 |
WordPress版本: | 6.6 |
echo most_and_least_read_posts_get_hits(get_the_ID());
代码
Also, [most_read_posts] a shortcode is available. Use it like this:
[most_read_posts type="most" posts_number="5" show_thumbs="false" date_from="2016-01-01" date_to="2016-04-30"]
Shortcode attributes:
most_and_least_read_posts_widget
(not two nested folders) in the plugin directory, then activate the plugin through the Plugins
menu in WordPress.The plugin starts collecting hits once installed, so there are "no results available" for a short time, until the first data is stored. It's better to show the widget some hours (or days) after having installed it.
This uncommon issue can be caused by duplicated custom fields in some posts. To solve it, inspect the post custom fields and delete unnecessary duplicates of the "custom_total_hits" field.
Yes, you can do it editing the "mlrp_ul" class in your template style.css file. E.g. 50x50 pixels images, floating on the right: .mlrp_ul img { width: 50px; height: 50px; float: right; }