{"id":13720,"date":"2011-06-22T16:09:24","date_gmt":"2011-06-22T16:09:24","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/sub-categories-widget\/"},"modified":"2023-03-22T14:13:38","modified_gmt":"2023-03-22T14:13:38","slug":"sub-categories-widget","status":"closed","type":"plugin","link":"https:\/\/tw.wordpress.org\/plugins\/sub-categories-widget\/","author":393930,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5.2","stable_tag":"trunk","tested":"6.2.9","requires":"3.9","requires_php":"","requires_plugins":"","header_name":"Sub Categories Widget","header_author":"BrokenCrust","header_description":"","assets_banners_color":"","last_updated":"2023-03-22 14:13:38","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/brokencrust.com\/","rating":4.9,"author_block_rating":0,"active_installs":2000,"downloads":67885,"num_ratings":0,"support_threads":1,"support_threads_resolved":1,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"0.1":{"tag":"0.1","author":"BrokenCrust","date":"2011-07-13 16:36:56"},"1.0":{"tag":"1.0","author":"BrokenCrust","date":"2012-03-12 18:23:03"},"1.1":{"tag":"1.1","author":"BrokenCrust","date":"2013-06-24 09:39:46"},"1.2":{"tag":"1.2","author":"BrokenCrust","date":"2014-06-23 09:47:22"},"1.3":{"tag":"1.3","author":"BrokenCrust","date":"2014-07-21 08:52:57"},"1.4":{"tag":"1.4","author":"BrokenCrust","date":"2015-11-13 09:41:38"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":1,"5":18},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":1289814,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":1289814,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1289814,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","1.0","1.1","1.2","1.3","1.4"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[89,245,16387,162],"plugin_category":[43],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-13720","plugin","type-plugin","status-closed","hentry","plugin_tags-category","plugin_tags-list","plugin_tags-sub-category","plugin_tags-widget","plugin_category-customization"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/sub-categories-widget.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Sometimes when you divide up your WordPress content into categories it all ends up in sub-categories of one or two main categories that don't have any content themselves.<\/p>\n\n<p>With the widget you can add a list of sub-categories even if the parent doesn't have posts.<\/p>\n\n<p>You can display and filter sub-categories in various ways:<\/p>\n\n<ul>\n<li>Use the parent category as the widget title<\/li>\n<li>Show post counts in bracket next to the name<\/li>\n<li>Hide empty sub-categories<\/li>\n<li>Add a link to the parent category to the widget title<\/li>\n<li>Show the full sub-category tree so it include sub-sub categories and so on as well<\/li>\n<li>Display the list as dropdown rather than as links<\/li>\n<li>Use the first category of the current post as the parent<\/li>\n<li>Exclude one or more sub-categories from the list<\/li>\n<li>List the categories in reverse order<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Installing is pretty easy and takes only a minute or two:<\/p>\n\n<ol>\n<li><p>Upload 'sub-category-widget' directory to your '\/wp-content\/plugins\/' directory.<\/p><\/li>\n<li><p>Activate the plugin through the 'Plugins' screen in WordPress.<\/p><\/li>\n<li><p>On the 'Widgets' sub-menu of 'Appearance' you will find a new widget type called 'Sub Category'.<\/p><\/li>\n<li><p>Add one or more of these to your themes widget display areas.<\/p><\/li>\n<li><p>For each widget you add, decide what and how you'd like it to display.<\/p><\/li>\n<li><p>Save your settings.<\/p><\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.5.2<\/h4>\n\n<ul>\n<li>Changed dropdown url function from get_option to get_home_url for compatibility with WPML<\/li>\n<\/ul>\n\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>Fixed issue with a php7.2 depreciation during plugin activation (bug fix)<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Added an option to display the categories in reverse order<\/li>\n<li>Added the ability to change the selection label text of the dropdown list<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>Fixed missing parent category notice on pages when using irst category of the post option<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added an option to use the first category of the post as the parent<\/li>\n<li>Improved and updated sanitation and validation<\/li>\n<\/ul>\n\n<h4>1.3.01<\/h4>\n\n<ul>\n<li>Updated the dropdown to be in name order (to match the list)<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Added option to show as dropdown list<\/li>\n<li>Tidy of widget options area<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added ability to exclude categories (with a comma delimited list)<\/li>\n<li>Added option to show the entire sub-category tree rather than just one level<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Highlights the current category if on a category archive page (use .current-cat to style)<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First Production Release<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"This Widget lists the sub-categories for a given category.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13720"}],"author":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/anonymized-393930"}],"wp:attachment":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13720"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13720"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13720"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13720"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13720"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}