Ver Mensaje Individual
  #6 (permalink)  
Antiguo 08/05/2012, 18:28
Avatar de zanguanga
zanguanga
Moderadora
 
Fecha de Ingreso: julio-2009
Ubicación: España
Mensajes: 1.686
Antigüedad: 14 años, 9 meses
Puntos: 429
Respuesta: Categoria inservible

Cita:
La categoría Inicio, no es una categoría
Sería lo lógico, aunque algunos temas son tan chapuzas que usan inicio como categoría

Cita:
tambien me valdria esconderla
El problema es que la función the_category no admite el argumento "exclude".

Pero puedes probar añadiendo este hook en functions.php

Código:
function the_category_filter($thelist,$separator=' ') {
	if(!defined('WP_ADMIN')) {
		//list the category names to exclude
		$exclude = array('Something','Something Else','Blah','YAY');
		$cats = explode($separator,$thelist);
		$newlist = array();
		foreach($cats as $cat) {
			$catname = trim(strip_tags($cat));
			if(!in_array($catname,$exclude))
				$newlist[] = $cat;
		}
		return implode($separator,$newlist);
	} else
		return $thelist;
}
add_filter('the_category','the_category_filter',10,2);
en la línea
Código:
		$exclude = array('Something','Something Else','Blah','YAY');
se listan los nombres de las categorías a excluir

Por aquí dicen que les funcionó:
http://wordpress.org/support/topic/e...n-the_category
__________________
Mi blog personal | Mi G+