{"id":965,"date":"2009-02-19T02:07:07","date_gmt":"2009-02-18T17:07:07","guid":{"rendered":"http:\/\/bton.papalabs.net\/?p=965"},"modified":"2009-02-24T15:13:58","modified_gmt":"2009-02-24T06:13:58","slug":"j-bton-s-recent-posts-mu-plugin-for-wordpress-mu","status":"publish","type":"post","link":"https:\/\/bton.papalabs.net\/?p=965","title":{"rendered":"J. BTON &#8216;s  Recent Posts mu-plugin for WordPress MU"},"content":{"rendered":"<p>[<strong><a href=\"http:\/\/bton.papalabs.net\/?p=961\">JAPANESE<\/a><\/strong>]<\/p>\n<p>Download the code , and FTP-upload the file to \/wp-ontent\/mu-plugin\/. It will work as soon as file uploaded.<\/p>\n<p><em>**FEATURE**<\/em><\/p>\n<blockquote><p>Parameter explanations<br \/>\n$how_many: how many recent posts are being displayed<br \/>\n$how_long: time frame to choose recent posts from (in days)<br \/>\n$cate: category ID to be selected<br \/>\n$limit: how many posts should be displayed from each category<br \/>\n$titleOnly: true (only title of post is displayed) OR false (title of post and name of blog are displayed)<br \/>\n$begin_wrap: customise the start html code to adapt to different themes<br \/>\n$end_wrap: customise the end html code to adapt to different themes<\/p>\n<p>Sample call: bton_recent_posts(8, 30, 5, 2, true, &#8216;&lt;li&gt;&#8217;, &#8216;&lt;\/li&gt;&#8217;); &gt;&gt; total 8 most recent entries over the past 30 days, from cateID 5, 2 entries from each blog, displaying titles only<br \/>\nwrite code in template<br \/>\nex. &lt;ul&gt;&lt;?php bton_recent_posts(8, 30, 5, 2, true, &#8216;&lt;li class=&#8221;pageposts_list&#8221;&gt;&#8217;, &#8216;&lt;\/li&gt;&#8217;); ?&gt;&lt;\/ul&gt;<br \/>\nAnd you can also add style in your css files like this.<br \/>\nli.pageposts_list {list-mark-style:none;}<br \/>\nspan.pageposts_cont{font-size:small; color:#333;}<br \/>\nspan.pageposts_date {font-size:x-small; color:#ccc;}<br \/>\nspan.pageposts_blog {font-size:x-small; color:#ccc;}<\/p><\/blockquote>\n<p>-&gt;&gt;[<a href=\"http:\/\/bton.papalabs.net\/wp-content\/uploads\/code\/bton_recent_posts_1.0.zip\"><strong>DOWNLOAD<\/strong><\/a>](bton_recent_posts_1.0.zip:2KB)<\/p>\n<p><a href=\"http:\/\/bton.papalabs.net\/?p=993\">\/*Now, Ver.2 available*\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[JAPANESE] Download the code , and FTP-upload the file to \/wp-ontent\/mu-plugin\/. It will work as soon as file  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[198,200,199],"_links":{"self":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/posts\/965"}],"collection":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=965"}],"version-history":[{"count":0,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/posts\/965\/revisions"}],"wp:attachment":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}