Innerpage slider based on category

From Codex
Jump to: navigation, search

Open single.php and look for

// Theme innerpage slider
if (get_option('of_bn_inslider') == 'Site Wide') {
	require_once (GABFIRE_INC_PATH . '/theme-gallery.php');
} 
elseif (get_option('of_bn_inslider') == 'Tag-based' && ( has_tag(get_option('of_bn_inslider_tag')) ) or ( term_exists( get_option('of_bn_inslider_tag', 'gallery-tag', '' )) )) {
	require_once (GABFIRE_INC_PATH . '/theme-gallery.php');
}
elseif (get_option('of_bn_inslider') == 'Disable') {
	// do nothing
}

Replace it with

// Theme innerpage slider
if (in_category('XX')) {
	require_once (GABFIRE_INC_PATH . '/theme-gallery.php');
}

Make sure to replace XX with the id number of category to show innerpage slider under.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox