Epitome Featured Category

Set an introduction category as a metadata that helps to identify the topic of a post.

Author:Fred Dessaint (profile at wordpress.org)
WordPress version required:3.5
WordPress version tested:4.3.33
Plugin version:1.0
Added to WordPress repository:04-12-2015
Last updated:03-12-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://www.freddessaint.com/
Total downloads:627
plugin download
Click to start download

The featured category is meant to set an introduction category that helps to identify the topic of a post. The plugin adds a metabox in the edit page of a regular post for selecting the featured category. Note that a small coding is required to display the featured category in the right location of your template. You can display the featured category in the desired location of the page with a set of functions that you call from your template. The plugin CMB2 is required for creating metaboxes.

Functions

  • the_featured_category() takes the current post or page ID and outputs the featured category.
  • get_the_featured_category($post_id) has one optional parameter (post or page ID) and returns the featured category as a string.
  • has_featured_category($post_id) has one optional parameter (post or page ID) and checks whether a featured category exists.

ChangeLog