{"id":16716,"date":"2012-01-31T22:05:47","date_gmt":"2012-01-31T22:05:47","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/recent-post-views\/"},"modified":"2012-05-30T17:19:06","modified_gmt":"2012-05-30T17:19:06","slug":"recent-post-views","status":"publish","type":"plugin","link":"https:\/\/fi.wordpress.org\/plugins\/recent-post-views\/","author":8438948,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5","stable_tag":"trunk","tested":"3.3.3","requires":"2.8.0","requires_php":"","requires_plugins":"","header_name":"Recent Post Views","header_author":"ChrisBuck","header_description":"","assets_banners_color":"","last_updated":"2012-05-30 17:19:06","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=SPAZAZLTNNRXG","header_plugin_uri":"http:\/\/cbuckconsulting.com\/recentPostViews\/","header_author_uri":"http:\/\/cbuckconsulting.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":6934,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.5":"<ul>\n<li>Adds styling options in settings and fixes table and list code.<\/li>\n<\/ul>","1.4":"<ul>\n<li>Adds new shortcode functionality.<\/li>\n<\/ul>","1.3":"<ul>\n<li>Prefixes variable names and creates relative paths to image files, for more stable plugin.<\/li>\n<\/ul>","1.2":"<ul>\n<li>Minor bug fix<\/li>\n<\/ul>","1.1":"<ul>\n<li>Adds options for changing &quot;hot&quot; posts and some styling of the widget.<\/li>\n<\/ul>","1.0":"<ul>\n<li>Adds option to change number of posts and to select specific categories.<\/li>\n<\/ul>","0.5":"<p>Change how many days old until posts are no longer considered &quot;recent.&quot;<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","1.0","1.1","1.2","1.3","1.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539116","resolution":"1","location":"plugin"}},"screenshots":{"1":"As you see from the screenshot, you get a nice sidebar widget with posts titles, links to the post, and a count of the recent number of views."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[86,166,2281,1083,872],"plugin_category":[36,43],"plugin_contributors":[81157],"plugin_business_model":[],"class_list":["post-16716","plugin","type-plugin","status-publish","hentry","plugin_tags-post","plugin_tags-posts","plugin_tags-recent","plugin_tags-recent-posts","plugin_tags-views","plugin_category-analytics","plugin_category-customization","plugin_contributors-chrisbuck","plugin_committers-chrisbuck"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/recent-post-views.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/recent-post-views\/trunk\/screenshot-1.png?rev=1539116","caption":"As you see from the screenshot, you get a nice sidebar widget with posts titles, links to the post, and a count of the recent number of views."}],"raw_content":"<!--section=description-->\n<p>This plugin requires the WP-PostViews plugin to be installed and setup to work correctly. (http:\/\/wordpress.org\/extend\/plugins\/wp-postviews\/)<\/p>\n\n<p>This plugin displays a widget in the sidebar with the most recently viewed posts over the last 2 days, the number of times they were viewed, a link to each, and images corresponding to whether they were \"hot\" posts or not (calculated as a percentage of the most viewed post).<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>recent-post-views.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Put the post in the sidebar via the 'Widgets' menu, save a title for the widget.<\/li>\n<li>Use the shortcode [recentpostviews] in your pages and posts. See FAQ's for more info. Accepts \"cat\", \"posts\", and \"days\" as inputs.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I use the shortcode?<\/dt>\n<dd><p>The basic format is [recentpostviews], which will by default show a list of the top 7 posts, from all categories, over the last 2 days.\nOptions are \"cat\", \"posts\" and \"days\".\n* \"cat\" is the category ID.\n* \"posts\" is the number of posts you want to display.\n* \"days\" is the number of days back you want the shortcode to query, as in \"over the last (n) days.\"<\/p>\n\n<p>Example: [recentpostviews cat=\"5\" posts=\"10\" days=\"3\"]\n*This would display the 10 most recent posts from category 5 over the last 3 days.<\/p>\n\n<p>If you're not getting any results for the shortcode, try changing the number of days.<\/p>\n\n<p>By default, the \"hotlevel\" for posts is 75% or .75 in the shortcode. E.g., a post will not show up as \"hot\" unless it is greater than or equal to the post with the most number of views over the same time frame.<\/p><\/dd>\n<dt>How can I change options, like what is considered a \"recent\" post?<\/dt>\n<dd><p>Just add the widget and select your options.<\/p><\/dd>\n<dt>I have multiple widgets, and some of them have posts that are viewed the same number of times, but one is not a \"hot\" post. What gives?<\/dt>\n<dd><p>Whether a post is hot or not is dependent on the max number of views for any post over the timeframe you have selected. E.g., if you have a widget based on the last 3 days and one based on the last 7, the level for a \"hot\" post will be different. I'm planning on changing this in a future update, such that the max number of posts for a particular category will be calculated.<\/p><\/dd>\n<dt>The number of views for my posts are not updating, why?<\/dt>\n<dd><p>I actually had this issue myself, and discovered that it's because the postmeta table was not updating the number of views. As a temporary solution, I installed the WP-PostViews plugin (at http:\/\/wordpress.org\/extend\/plugins\/wp-postviews\/) and enabled the option in the settings menu that said to register views from everyone, not just guests. Thanks to GamerZ for a great plugin, and for helping to fix this issue. If you're having this problem, I suggest that recent-post-views should be used in conjunction with WP-PostViews.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.5<\/h4>\n\n<ul>\n<li>Added settings sub-menu with styling options.<\/li>\n<li>Fixed list and table code for widgets and shortcode.<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added shortcode functionality.<\/li>\n<li>Minor changes to the table tags in the widget.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Prefixed all the variable names and made the paths to image files relative.<\/li>\n<li>This should be a more stable release, one that can co-exist peacefully with other plugins.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Minor bug fix<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added option to set threshold percent level for \"hot\" posts.<\/li>\n<li>Added option to change html color code for number of views.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Adds option to change number of posts and to select specific categories.<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Adds option to widget to change number of days for recent posts.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>First release, displays most recent posts views over last 2 days.<\/li>\n<\/ul>","raw_excerpt":"Displays the most recent posts in a widget, how many times they have been viewed over last (n) days, and images for popularity.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16716"}],"author":[{"embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/chrisbuck"}],"wp:attachment":[{"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16716"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16716"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16716"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16716"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16716"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}