Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/01/2013, 09:02
Avatar de el_tigre
el_tigre
 
Fecha de Ingreso: febrero-2006
Ubicación: Perú
Mensajes: 1.044
Antigüedad: 18 años, 3 meses
Puntos: 8
De acuerdo Duda con Categorías

Hi amigos, tengo una duda, espero que puedan ayudarme a solucionarlo.

Tengo 3 categorías Padres y ellas tienen sus hijos por supuesto....

Cat A
- A1
- A2
- A3
Cat B
- B1
- B2
Cat C
- C1

Me gustaría mostrar al inicio de mi página, sólo las Categorías HIJOS

Esas categorías Padres los llamo desde el Menú (horizontal), si yo hago clic en la Cat A, me debe mostrar sólo los hijos del Cat A....sin mostrar al Padre... ¿es posible?

Actualmente manejo un código que me muestra al Padre y realmente no sé como ocultar al Padre.

Código PHP:
<?
    $this_category 
get_category($cat);
    if (
$this_category->category_parent == 0) {
        
$this_category->category_parent $cat;
    }
    
wp_list_categories('list=1&show_count=1&exclude=4&child_of=' $this_category->category_parent);
    
?>
Saludos