{"id":3113,"date":"2007-10-18T22:19:32","date_gmt":"2007-10-18T19:19:32","guid":{"rendered":"http:\/\/mummila.net\/nuudelisoppa\/?p=3113"},"modified":"2011-09-11T19:18:59","modified_gmt":"2011-09-11T16:18:59","slug":"the_category-reloaded","status":"publish","type":"post","link":"https:\/\/mummila.net\/nuudelisoppa\/2007\/10\/18\/the_category-reloaded\/","title":{"rendered":"the_category Reloaded"},"content":{"rendered":"<p><a href='http:\/\/mummila.net\/nuudelisoppa\/files\/2007\/10\/the_category_reloaded.zip'>This tiny WordPress plugin<\/a> is a wrapper for <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/the_category\">the_category()<\/a>. It provides a new function, ju_the_category(), which gives the_category() some <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/comments_number\">comments_number()<\/a> -like qualities: by submitting different prefixes for cases where the current post belongs to 0, 1 or &gt;1 categories, the user can have more control over the output of the_category().<\/p>\n<p>After installation (just unzip it and drop it in the plugins directory), the usage of ju_the_category() is <code><\/code>, where<\/p>\n<dl>\n<dt>zero<\/dt>\n<dd><i>(string)<\/i> is the text to display when the post does not belong to any categories. The default is an empty string.<\/dd>\n<dt>one<\/dt>\n<dd><i>(string)<\/i> is the text to prefix the category with, when the post belongs to exactly one category. The default is an empty string.<\/dd>\n<dt>more<\/dt>\n<dd><i>(string)<\/i> is the text to prefix the list of categories with, when the post belongs to more than one category. The default is an empty string.<\/dd>\n<dt>separator<\/dt>\n<dd><i>(string)<\/i> Text or character to display between each category link. The default is to place the links in an unordered list.<\/dd>\n<dt>parents<\/dt>\n<dd>(<i>string<\/i>) How to display links that reside in child (sub) categories. Options are:<\/p>\n<ul>\n<li><tt>'multiple'<\/tt> &#8211; Display separate links to parent and child categories, exhibiting &#8220;parent\/child&#8221; relationship.<\/li>\n<li><tt>'single'<\/tt> &#8211; Display link to child category only, with link text exhibiting &#8220;parent\/child&#8221; relationship.<\/li>\n<\/ul>\n<p> Note: Default is a link to the child category, with no relationship exhibited.<\/dd>\n<\/dl>\n<p>The last two parameters should function identically to the parameters of the original the_category().<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tiny WordPress plugin is a wrapper for the_category(). It provides a new function, ju_the_category(), which gives the_category() some comments_number() -like qualities: by submitting different prefixes for cases where the current post belongs to 0, 1 or &gt;1 categories, the user can have more control over the output of the_category(). After installation (just unzip it [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3113","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/comments?post=3113"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3113\/revisions"}],"predecessor-version":[{"id":3114,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3113\/revisions\/3114"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/media?parent=3113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/categories?post=3113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/tags?post=3113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}