{"id":108714,"date":"2019-09-06T07:41:21","date_gmt":"2019-09-06T07:41:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/contextual-category-widget\/"},"modified":"2026-07-28T22:14:58","modified_gmt":"2026-07-28T22:14:58","slug":"contextual-category-widget","status":"publish","type":"plugin","link":"https:\/\/snd.wordpress.org\/plugins\/contextual-category-widget\/","author":819763,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.7.0","stable_tag":"0.7.0","tested":"7.0.2","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Contextual Category Widget","header_author":"Vincenzo Russo","header_description":"A WordPress widget showing the description of the first category in the single post currently being displayed.","assets_banners_color":"","last_updated":"2026-07-28 22:14:58","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/contextual-category-widget\/","header_author_uri":"https:\/\/artetecha.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1962,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1":{"tag":"0.1","author":"nemo.vrusso","date":"2019-09-06 07:41:11"},"0.2":{"tag":"0.2","author":"nemo.vrusso","date":"2019-09-06 07:45:21"},"0.3":{"tag":"0.3","author":"nemo.vrusso","date":"2019-09-06 07:52:57"},"0.4":{"tag":"0.4","author":"nemo.vrusso","date":"2019-09-06 08:12:40"},"0.5":{"tag":"0.5","author":"nemo.vrusso","date":"2019-09-06 08:52:09"},"0.5.1":{"tag":"0.5.1","author":"nemo.vrusso","date":"2019-09-06 09:27:09"},"0.6":{"tag":"0.6","author":"nemo.vrusso","date":"2019-09-06 10:16:55"},"0.6.1":{"tag":"0.6.1","author":"nemo.vrusso","date":"2019-09-06 10:31:08"},"0.7.0":{"tag":"0.7.0","author":"nemo.vrusso","date":"2026-07-28 22:14:58"}},"upgrade_notice":{"0.7.0":"<p>Requires WordPress 6.0 or later and PHP 7.4 or later.<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.3","0.4","0.5","0.5.1","0.6","0.6.1","0.7.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[89,91,162],"plugin_category":[43,57],"plugin_contributors":[175914],"plugin_business_model":[],"class_list":["post-108714","plugin","type-plugin","status-publish","hentry","plugin_tags-category","plugin_tags-taxonomy","plugin_tags-widget","plugin_category-customization","plugin_category-taxonomy","plugin_contributors-nemovrusso","plugin_committers-nemovrusso"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/contextual-category-widget.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Contextual Category Widget displays the name and description of the first category assigned to the post currently being viewed.<\/p>\n\n<p>The widget remains hidden on archives, pages, and posts whose first category has no description. Its output uses the surrounding widget markup supplied by the active theme.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate Contextual Category Widget.<\/li>\n<li>Add the widget to a widget area in Appearance &gt; Widgets.<\/li>\n<li>Add descriptions to the categories you want the widget to display.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20happens%20when%20a%20post%20has%20multiple%20categories%3F\"><h3>What happens when a post has multiple categories?<\/h3><\/dt>\n<dd><p>The widget displays the first category returned by WordPress for that post.<\/p><\/dd>\n<dt id=\"can%20i%20choose%20a%20category%20in%20the%20widget%20settings%3F\"><h3>Can I choose a category in the widget settings?<\/h3><\/dt>\n<dd><p>No. The widget is intentionally contextual and uses the category assigned to the current post.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.7.0<\/h4>\n\n<ul>\n<li>Add compatibility metadata for current WordPress and PHP versions.<\/li>\n<li>Escape and sanitize dynamic widget output.<\/li>\n<li>Make the widget name and description translatable.<\/li>\n<li>Preserve theme widget wrappers and existing widget registrations.<\/li>\n<\/ul>\n\n<h4>0.6.1<\/h4>\n\n<ul>\n<li>Fix formatting.<\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>Do not display the widget when there is no description for the article's first category.<\/li>\n<\/ul>\n\n<h4>0.5.1<\/h4>\n\n<ul>\n<li>Fix div wrapping.<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Wrap output in a div with class <code>textwidget<\/code>.<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>Fix version.<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Fix readme.<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Rename main file.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Displays the name and description of the first category assigned to the current single post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/108714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=108714"}],"author":[{"embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nemovrusso"}],"wp:attachment":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=108714"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=108714"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=108714"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=108714"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=108714"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=108714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}