{"id":899,"date":"2011-11-10T14:44:39","date_gmt":"2011-11-10T22:44:39","guid":{"rendered":"http:\/\/www.dognmonkey.com\/techs\/?p=899"},"modified":"2018-01-30T16:56:28","modified_gmt":"2018-01-31T00:56:28","slug":"list-category-posts-plugin-for-wordpress","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/techs\/list-category-posts-plugin-for-wordpress.html","title":{"rendered":"List Category Posts Plugin For WordPress"},"content":{"rendered":"<p><a target=\"_blank\" title=\"List Category Posts Plugin\" href=\"\/\/wordpress.org\/extend\/plugins\/list-category-posts\/\">List category posts plugin<\/a> let us to list the post within the category. Normally we would put the plugin code in the end of post to list the posts within the category. The <a target=\"_blank\" title=\"list category posts parameters\" href=\"\/\/wordpress.org\/extend\/plugins\/list-category-posts\/other_notes\/\">parameters<\/a> show options for the codes. So this post will be listed under plugins category, at the end of this post we will list all the posts within this category and the codes will be:<\/p>\n<blockquote><p>[&#8216;catlist categorypage=yes numberposts=5] or we can use the category name.<\/p>\n<p>[&#8216;catlist name=plugins numberposts=4] remove the &#8216; before catlist. or if we know the id of the category<\/p>\n<p>[&#8216;catlist id=31 numberposts=0 = maximum] <em>to find catid, just go to dashboard-categories-click the category we want to find id, it will <a class=\"preview\" title=\"find category id\" href=\"\/media\/wpplugins\/catid.jpg\">show up<\/a> in the url bar.<\/em><\/p><\/blockquote>\n<p><em>The default for numberposts = 5 in the php file. If we want to change to maximum so that we don&#8217;t have to add parameter &#8220;numberposts&#8221; every time and just use &#8220;categorypage=yes&#8221; is more convenient and easier to remember, we need to modify &#8220;5&#8221; to &#8220;0&#8221;<br \/>\n<\/em><\/p>\n<div class=\"igallery\">\n<p style=\"text-align: center;\"><a title=\"change default '5' to '0'\" class=\"preview\" href=\"\/media\/wpplugins\/editphp.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"edit php and set numberposts = 0\" src=\"\/media\/wpplugins\/tn_editphp.jpg\" alt=\"edit php and set 0\" width=\"250\" height=\"195\" \/><\/a><\/p>\n<\/div>\n<p>*categorypage parameter used with number of posts =5<\/p>\n<ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul>\n<p>*name=plugins number of posts = 4<\/p>\n<ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><li><a href=\"https:\/\/www.dognmonkey.com\/techs\/jquery-collapse-o-matic-plugin.html\">Jquery Collapse-O-Matic Plugin<\/a><\/li><li><a href=\"https:\/\/www.dognmonkey.com\/techs\/how-to-use-wp-pagenavi-and-wp-commentnavi-plugins.html\">How To Use WP-PageNavi And WP-CommentNavi Plugins<\/a><\/li><li><a href=\"https:\/\/www.dognmonkey.com\/techs\/add-share-this-button-to-wordpress.html\">Add Share This Button To WordPress<\/a><\/li><li><a href=\"https:\/\/www.dognmonkey.com\/techs\/category-post-list.html\">Category Post List<\/a><\/li><\/ul>\n<p>*id=31 numberposts=0 = all<\/p>\n<p><ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul><br \/>\n<ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul><\/p>\n","protected":false},"excerpt":{"rendered":"<p>List category posts plugin let us to list the post within the category. Normally we would put the plugin code in the end of post to list the posts within the category. The parameters show options for the codes. So this post will be listed under plugins category, at the end of this post we <a href=\"https:\/\/www.dognmonkey.com\/techs\/list-category-posts-plugin-for-wordpress.html\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[121],"class_list":["post-899","post","type-post","status-publish","format-standard","hentry","category-plugins","tag-list-category-posts-plugin"],"views":1502,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/comments?post=899"}],"version-history":[{"count":3,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/899\/revisions"}],"predecessor-version":[{"id":6782,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/899\/revisions\/6782"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/media?parent=899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/categories?post=899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/tags?post=899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}