Viewing 1 replies (of 1 total)
  • I did something similar. I looped through all of the categories and depending on the category id, I added that category name to a variable which then prints after the loop. You can do something similar.

    Here is my code:

    $theCatName = "";
    foreach((get_the_category()) as $category) {
    	if ($category->cat_ID != '36' && $category->cat_ID != 39 && $category->cat_ID != '8') {
            	$theCatName = $theCatName.", ".$category->cat_name;
    	}
    }
    echo $theCatName;
Viewing 1 replies (of 1 total)

The topic ‘Different Text on Some Category Pages (Codex)’ is closed to new replies.