Category Title – How to disable
-
Hi!
I’m using my own category title construction and it all worked till plugin version 2.2. Now, if plugin is activated I can not see needed category title. How can I disable rewriting category titles by your plugin? Deleting anything in “Category title format” can not help anymore.
Here is my code in header.php
<title>
<?php
if (is_category()){
$cat_id = get_query_var(‘cat’);
$cat_data = get_option(“category_$cat_id”);
if (!empty($cat_data[‘cat_title’])){
echo $cat_data[‘cat_title’]. ‘ | ‘;
bloginfo( ‘name’ );
}else{
wp_title( ‘|’, true, ‘right’ ); bloginfo( ‘name’ );
}
}else{
wp_title( ‘|’, true, ‘right’ ); bloginfo( ‘name’ );
}
?>
</title>
- The topic ‘Category Title – How to disable’ is closed to new replies.