{"id":41212,"date":"2016-01-09T08:48:45","date_gmt":"2016-01-09T08:48:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/my-popular-posts\/"},"modified":"2016-06-21T02:54:26","modified_gmt":"2016-06-21T02:54:26","slug":"my-popular-posts","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/my-popular-posts\/","author":14734984,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"4.5.33","requires":"","requires_php":"","requires_plugins":"","header_name":"Popular post","header_author":"Gorakh Shrestha","header_description":"","assets_banners_color":"e1dfdf","last_updated":"2016-06-21 02:54:26","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.gorakh.com.np\/","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1291,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1325774","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[4132,8757,1086,86,166],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-41212","plugin","type-plugin","status-closed","hentry","plugin_tags-popular","plugin_tags-popular-post","plugin_tags-popular-posts","plugin_tags-post","plugin_tags-posts","plugin_committers-gorakhsth"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/my-popular-posts_e1dfdf.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin allow you to easily fetch popular post and get total view in post. Simply use <code>'orderby'=&gt;'popularity'<\/code> in query string.<\/p>\n\n<p>Add <code>'post','posts_per_page'=&gt;-1,'orderby'=&gt;'popularity'); \n$query = new WP_Query($args); \n\n?&gt;<\/code><\/p>\n\nFeatures\n\n<ol>\n<li>Support the custom post type <\/li>\n<li>Option page to allow popular post option in post type.(Setting &gt; MPP Setting)<\/li>\n<li>Can easily get total view for particular post using <code>get_view_number()<\/code>, <code>get_view_string()<\/code>. Function must be within loop. <\/li>\n<li>To print the total view for particular post <code>the_view_number()<\/code> and <code>the_view_string()<\/code> both function are almost same but <code>the_view_string()<\/code> return with 'views' text.<\/li>\n<\/ol>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Upload the plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to <strong>Setting &gt; MPP Setting<\/strong> and select post type.<\/li>\n<li>Put the code <code>&lt;?php $query = new WP_Query($query_string.\"&amp;orderby=popularity\"); ?&gt;<\/code>.<\/li>\n<\/ol>","raw_excerpt":"Get popular posts easily using orderby in your query string with &#039;popularity&#039; argument.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/41212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=41212"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gorakhsth"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=41212"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=41212"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=41212"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=41212"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=41212"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=41212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}