{"id":5498,"date":"2009-05-07T19:07:51","date_gmt":"2009-05-07T19:07:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/show-posts-shortcode\/"},"modified":"2026-03-13T10:09:10","modified_gmt":"2026-03-13T10:09:10","slug":"show-posts-shortcode","status":"publish","type":"plugin","link":"https:\/\/hat.wordpress.org\/plugins\/show-posts-shortcode\/","author":2755330,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1","stable_tag":"0.1","tested":"6.9.4","requires":"2.7","requires_php":"","requires_plugins":null,"header_name":"Show Post Shortcode","header_author":"Niraj Shah","header_description":"","assets_banners_color":"","last_updated":"2026-03-13 10:09:10","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.webniraj.com\/2010\/05\/07\/show-post-shortcode-plugin\/","header_author_uri":"http:\/\/twitter.com\/WebNiraj","rating":0,"author_block_rating":0,"active_installs":100,"downloads":8638,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":{"0.1":{"tag":"0.1","author":"niraj.shah","date":"2026-03-13 10:09:10"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[245,166],"plugin_category":[],"plugin_contributors":[84370],"plugin_business_model":[],"class_list":["post-5498","plugin","type-plugin","status-publish","hentry","plugin_tags-list","plugin_tags-posts","plugin_contributors-nirajshah-1","plugin_committers-nirajshah-1"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/show-posts-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This simple shortcode plugin allows you to list posts as a bulleted list linking to the full article. You can limit\nthe list to posts from a specific category and you can select the number of posts to show. The <code>order<\/code> and\n    orderby options lets you sort the list too.<\/p>\n\n<p>Usage is simple. Create a page or post and use the code <code>[showposts category=\"2\" num=\"4\"]<\/code> - this will show\nall 4 posts from category 2. Another example <code>[showposts category=\"1\" num=\"-1\" orderby=\"date\" order=\"DESC\"]<\/code>\nshows all the posts from category 1 ordered by the date (newest post first).<\/p>\n\n<p>By default, only 5 posts are shown (unless you use the <code>num<\/code> option) and sorting in by date (oldest to newest).<\/p>\n\n<h3>Example<\/h3>\n\n<p>You can see two examples of the code working at the following links:<\/p>\n\n<ul>\n<li>https:\/\/www.xtremeps3.com\/ps5-firmware-history\/<\/li>\n<li>https:\/\/www.xtremeps3.com\/firmware-history\/<\/li>\n<li>https:\/\/www.xtremeps3.com\/faqs\/<\/li>\n<\/ul>\n\n<h3>Usage<\/h3>\n\n<p>The shortcode is <code>[showposts]<\/code><\/p>\n\n<p>You can use the following parameters to customize what is displayed (all are optional):<\/p>\n\n<pre><code>[showposts category=\"2\" num=\"4\" orderby=\"date\" order=\"DESC\"]\n<\/code><\/pre>\n\n<p>Set <code>order<\/code> to one of the following:<\/p>\n\n<ul>\n<li><code>author<\/code> - Sort by the numeric author IDs.<\/li>\n<li><code>category<\/code> - Sort by the numeric category IDs.<\/li>\n<li><code>content<\/code> - Sort by content.<\/li>\n<li><code>date<\/code> - Sort by creation date.<\/li>\n<li><code>ID<\/code> - Sort by numeric post ID.<\/li>\n<li><code>menu_order<\/code> - Sort by the menu order. Only useful with pages.<\/li>\n<li><code>mime_type<\/code> - Sort by MIME type. Only useful with attachments.<\/li>\n<li><code>modified<\/code> - Sort by last modified date.<\/li>\n<li><code>name<\/code> - Sort by stub.<\/li>\n<li><code>parent<\/code> - Sort by parent ID.<\/li>\n<li><code>password<\/code> - Sort by password.<\/li>\n<li><code>rand<\/code> - Randomly sort results.<\/li>\n<li><code>status<\/code> - Sort by status.<\/li>\n<li><code>title<\/code> - Sort by title.<\/li>\n<li><p><code>type<\/code> - Sort by type.<\/p>\n\n<p>orderby can be one the following:<\/p><\/li>\n<li><p>DESC<\/p><\/li>\n<li>ASC<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>show-posts-shortcode.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>Place <code>[showposts category=\"2\" num=\"4\"]<\/code> in your post or pages<\/li>\n<\/ol>","raw_excerpt":"Shortcode to display posts as a bulleted list. You can also use parameters order and orderby to sort the list.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/5498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=5498"}],"author":[{"embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nirajshah-1"}],"wp:attachment":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=5498"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=5498"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=5498"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=5498"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=5498"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=5498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}