authenticman1966
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Forceful Lite] Categories Loading Blank PageResolved. Changed this
‘function kopa_get_template_setting() {
$kopa_setting = get_option(‘kopa_setting’, unserialize(KOPA_DEFAULT_SETTING));
$setting = array();if (is_home()) {
$setting = $kopa_setting[‘home’];
} else if (is_archive()) {
if (is_category() || is_tag()) {
$setting = get_option(“kopa_category_setting_” . get_queried_object_id(), $kopa_setting[‘taxonomy’]);
} else {
$setting = get_option(“kopa_category_setting_” . get_queried_object_id(), $kopa_setting[‘archive’]);
}
} else if (is_singular()) {
if (is_singular(‘post’)) {
$setting = get_option(“kopa_post_setting_” . get_queried_object_id(), $kopa_setting[‘post’]);
} else if (is_page()) {$setting = get_option(“kopa_page_setting_” . get_queried_object_id());
if (!$setting) {
if (is_front_page()) {
$setting = $kopa_setting[‘home’];
} else {
$setting = $kopa_setting[‘page’];
}
}
} else {
$setting = $kopa_setting[‘post’];
}
} else if (is_404()) {
$setting = $kopa_setting[‘_404’];
} else if (is_search()) {
$setting = $kopa_setting[‘search’];
}return $setting;
}’To this
‘function kopa_get_template_setting() {
$kopa_setting = get_option(‘kopa_setting’, unserialize(KOPA_DEFAULT_SETTING));
$setting = array();if (is_home()) {
$setting = $kopa_setting[‘home’];
} else if (is_archive()) {
if (is_category() || is_tag()) {
$setting = get_option(“kopa_category_setting_” . get_queried_object_id(), $kopa_setting[‘archive’]);
} else {
$setting = get_option(“kopa_category_setting_” . get_queried_object_id(), $kopa_setting[‘archive’]);
}
} else if (is_singular()) {
if (is_singular(‘post’)) {
$setting = get_option(“kopa_post_setting_” . get_queried_object_id(), $kopa_setting[‘post’]);
} else if (is_page()) {$setting = get_option(“kopa_page_setting_” . get_queried_object_id());
if (!$setting) {
if (is_front_page()) {
$setting = $kopa_setting[‘home’];
} else {
$setting = $kopa_setting[‘page’];
}
}
} else {
$setting = $kopa_setting[‘post’];
}
} else if (is_404()) {
$setting = $kopa_setting[‘_404’];
} else if (is_search()) {
$setting = $kopa_setting[‘search’];
}return $setting;
}’