Featured Category Widget

Showcase a specific category with ease, including optionally setting a featured image and listing child categories.

Example configuration of Featured Category Widget

Widgetized themes often include support for adding a featured page or post, but often there’s no easy way to feature a category from your blog.

With Featured Category Widget you can easily feature a blog category (or a category from a custom taxonomy, like product categories or recipe types), add a custom image and optionally show the category description and a list of subcategories.

The plugin is available to download on GitHub and is also in the WordPress plugin repository.

Features:

  • Add custom image and set display size.
  • Optionally show category description and/or subcategories.
  • Includes only minimal styling, mostly it’s left to your theme.
  • Supports custom taxonomies.
  • Developer friendly hooks and filters throughout.
  • Translated into French, Spanish, German.

Action Hooks

  • featured_category_widget_before_image
  • featured_category_widget_after_image
  • featured_category_widget_before_category_title
  • featured_category_widget_after_category_title
  • featured_category_widget_before_category_description
  • featured_category_widget_after_category_description
  • featured_category_widget_before_child_terms
  • featured_category_widget_after_child_terms

Filter Hooks

  • featured_category_widget_load_public_assets
  • featured_category_widget_image_id
  • featured_category_widget_image_size
  • featured_category_widget_image_args
  • featured_category_widget_title_link
  • featured_category_widget_title_tag
  • featured_category_widget_title_class
  • featured_category_widget_title_link
  • featured_category_widget_title_text
  • featured_category_widget_title_description
  • featured_category_child_term_{i}_link
  • featured_category_child_term_{i}_title
  • featured_category_ignored_image_sizes
  • featured_category_ignored_taxonomies

Work to properly document all of the plugin actions and filters is underway, and will be added along with examples of how you might replace the selected category image within a particular widget instance, how to switch off the default styling, and more.

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *