{"id":13375,"date":"2011-05-24T00:04:37","date_gmt":"2011-05-24T00:04:37","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/moka-get-posts\/"},"modified":"2011-05-24T00:04:37","modified_gmt":"2011-05-24T00:04:37","slug":"moka-get-posts","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/moka-get-posts\/","author":1414429,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"3.2.1","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"Moka Get Posts Shortcode","header_author":"Bob Matsuoka","header_description":"","assets_banners_color":"","last_updated":"2011-05-24 00:04:37","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.mokamedianyc.com\/dev\/get-posts-shortcode\/","header_author_uri":"http:\/\/www.mokamedianyc.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2810,"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":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[43820,166,357],"plugin_category":[43],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-13375","plugin","type-plugin","status-closed","hentry","plugin_tags-get-posts","plugin_tags-posts","plugin_tags-shortcodes","plugin_category-customization","plugin_committers-bobmatnyc"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/moka-get-posts.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Provides a [moka-get-posts] <a href=\"http:\/\/codex.wordpress.org\/Shortcode_API\">shortcode<\/a> for displaying posts or pages using the get_posts function.   The shortcode accepts most parameters that you can pass to the <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/wp_nav_menu\">get_posts()<\/a> function.  Additional arguments are: show_fields=\"post_content,post_excerpt,post_thumbnail\" (use post properties; additional fields include post_thumbnail and post_permalink), thumbnail_size=\"large\" (default: \"thumbnail\" to set post_thumbnail size), and permalink_title (default: \"true\" to wrap title in permalink).  To show posts or pages, add [get-posts category=\"NN\"] in the page or post body. To get pages, use the post_type parameter, e.g., [moka-get-posts post_type=\"page\"].  You can also pass a template using shortcode content.  Use the %post_title% format to have fields substituted.  Substitution fields most be listed in the \"show_fields\" argument.<\/p>\n\n<p>Note: unlike the get_posts function, this shortcode defaults to 99 items.  Override using the numberposts attribute.<\/p>\n\n<h4>Please Note<\/h4>\n\n<p>The default values are the same as for the <code>get_posts()<\/code> function (http:\/\/codex.wordpress.org\/Template_Tags\/get_posts) with the following exceptions:<\/p>\n\n<p>Standard Attributes\n'numberposts'     =&gt; -1,\n'orderby'         =&gt; 'post_date',\n'order'           =&gt; 'DESC',\n'post_type'       =&gt; 'post',\n'post_parent'     =&gt; '',<\/p>\n\n<p>Note:  'post_parent' also supports a non-standard \"this\" value, which will use the current post or page as its argument.<\/p>\n\n<p>Non-Standard Attributes<\/p>\n\n<p>'show_fields'     =&gt; 'post_title',<\/p>\n\n<p>Selects fields to include in output.  By default, post_title is shown. Other options are: post_excerpt, post_content, post_thumbnail, post_permalink<\/p>\n\n<p>'thumbnail_size'  =&gt; 'thumbnail',<\/p>\n\n<p>If 'post_thumbnail' is used in 'show_fields', this will determine the size of the thumbnail.<\/p>\n\n<p>'permalink_title' =&gt; 'true',<\/p>\n\n<p>If true, wrap post_title with post_permalink.<\/p>\n\n<p>'class_name'      =&gt; 'get-posts',<\/p>\n\n<p>Can use an alternate classname for the wrapping div.  Use if a template is not provided.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download and unzip the most recent version of this plugin<\/li>\n<li>Upload the show-menu-shortcode folder to \/path-to-wordpress\/wp-content\/plugins\/<\/li>\n<li>Login to your WP Admin panel, click Plugins, and activate \"Show Aposts Shortcode\"<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Provides a [moka-get-posts] shortcode for displaying posts or pages using the get_posts function.   The shortcode accepts most parameters that you can &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13375","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=13375"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bobmatnyc"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13375"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13375"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13375"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13375"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13375"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}