{"id":10833,"date":"2010-10-11T10:17:13","date_gmt":"2010-10-11T10:17:13","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-ajax-random-posts\/"},"modified":"2010-10-18T21:52:47","modified_gmt":"2010-10-18T21:52:47","slug":"wp-ajax-random-posts","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/wp-ajax-random-posts\/","author":5712540,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"3.0.5","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"WP-Ajax-Random-Posts","header_author":"QiQiBoY","header_description":"","assets_banners_color":"","last_updated":"2010-10-18 21:52:47","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.qiqiboy.com\/plugins\/wp-ajax-random-posts","header_author_uri":"http:\/\/www.qiqiboy.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3213,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[221,166,29439,244],"plugin_category":[59],"plugin_contributors":[86846],"plugin_business_model":[],"class_list":["post-10833","plugin","type-plugin","status-publish","hentry","plugin_tags-ajax","plugin_tags-posts","plugin_tags-rand","plugin_tags-random","plugin_category-utilities-and-tools","plugin_contributors-qiqiboy","plugin_committers-qiqiboy"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-ajax-random-posts.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Show your random posts on sidebar and provide ajax refresh function.\nHow to use this plug-in? It's easy and you have two ways:<br \/>\n1.Go to widgets page to add the widget to your sidebar.<br \/>\n2.use the function <code>&lt;?php WP_Ajax_Random_Posts('number=8&amp;cmtcount=1&amp;excerpt=1&amp;length=100&amp;auto=0&amp;time=60'); ?&gt;<\/code> to custom the posts display position.<br \/>\nThis function accepts six parameters:<br \/>\n    number: how many posts display. Type: Integer, default 8<br \/>\n    cmtcount: display comments count of the post. Type: Boolean, default 0. 1: yes, 0: no<br \/>\n    excerpt: display excerpt of no. Type: Boolean, default 0. 1: yes, 0: no<br \/>\n    length: the length of the excerpt. Type: Integer, default 100<br \/>\n    auto: auto refresh random psots list or not. Type: Boolean, default 0. 1: yes, 0: no<br \/>\n    time: the auto refresh interval(seconds). Type: Integer, default 60<br \/>\n\u663e\u793a\u4e00\u7ec4\u652f\u6301ajax\u81ea\u52a8\u5237\u65b0\u7684\u968f\u673a\u6587\u7ae0\u5217\u8868\u3002<br \/>\n\u5982\u4f55\u4f7f\u7528\u63d2\u4ef6\u5462\uff1f\u5f88\u7b80\u5355\uff0c\u6709\u4e24\u79cd\u65b9\u6cd5\uff1a<br \/>\n1.\u5230\u5c0f\u5de5\u5177\u9875\u9762\u53bb\u6dfb\u52a0\u5c0f\u5de5\u5177\u3002<br \/>\n2.\u4f7f\u7528\u81ea\u5b9a\u4e49\u8c03\u7528\u51fd\u6570<code>&lt;?php WP_Ajax_Random_Posts('number=8&amp;cmtcount=1&amp;excerpt=1&amp;length=100&amp;auto=0&amp;time=60'); ?&gt;<\/code><br \/><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download the plugin archive and expand it (you've likely already done this).<\/li>\n<li>Put the 'WP Ajax Random Posts' directory into your wp-content\/plugins\/ directory.<\/li>\n<li>Go to the Plugins page in your WordPress Administration area and click 'Activate' for WP Ajax Random Posts.<\/li>\n<li>Go to the WP Ajax Random Posts Options page (Settings &gt; WP Ajax Random Posts Option).<\/li>\n<li>Go to widgets page to add the widget to your sidebar.<\/li>\n<\/ol>\n\n<p>\u4e0b\u8f7d\u63d2\u4ef6\uff0c\u4e0a\u4f20\u5230\u63d2\u4ef6\u76ee\u5f55\uff0c\u5728\u540e\u53f0\u7ba1\u7406\u4e2d\u6fc0\u6d3b\u63d2\u4ef6\uff0c\u5230\u8bbe\u7f6e\u9875\u9762\u8fdb\u884c\u7b80\u5355\u8bbe\u7f6e\uff0c\u7136\u540e\u5728\u5c0f\u5de5\u5177\u9875\u9762\u5411\u8fb9\u680f\u6dfb\u52a0ajax\u968f\u673a\u6587\u7ae0\u5373\u53ef\u3002<br \/><\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<p>2010\/10\/09\n\u63d2\u4ef6\u5f00\u53d1\u5b8c\u6bd5\uff0c\u4e0a\u7ebf\u3002<\/p>","raw_excerpt":"Show your Random posts on sidebar and provide ajax auto refresh function.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/10833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=10833"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/qiqiboy"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=10833"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=10833"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=10833"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=10833"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=10833"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=10833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}