Ver Mensaje Individual
  #29 (permalink)  
Antiguo 19/05/2011, 16:03
ixac
 
Fecha de Ingreso: octubre-2008
Mensajes: 48
Antigüedad: 15 años, 7 meses
Puntos: 5
Respuesta: Colocar "balazo" al título (periódico digital)

Ok, sé que parezco de kindergarden pero voy a poco a poco

en el archivo wpzoom-functions.php estoy colocando el código de antetitulo, esto es lo primero que he modificado:


Código PHP:
    } elseif ( is_single() ) {
      
$cat get_the_category(); $cat $cat[0];
      echo 
get_category_parents($catTRUE' ' $delimiter ' ');
      echo 
$currentBefore;
      
mi_antetitulo();
      
the_title();
      echo 
$currentAfter;
 
    } elseif ( 
is_page() && !$post->post_parent ) {
      echo 
$currentBefore;
      
mi_antetitulo();
      
the_title();
      echo 
$currentAfter
En el mismo archivo después hay esta línea y me atoré, no sé en donde ponerlo.

Código PHP:
    } elseif ( is_page() && $post->post_parent ) {
      
$parent_id  $post->post_parent;
      
$breadcrumbs = array();
      while (
$parent_id) {
        
$page get_page($parent_id);
        
$breadcrumbs[] = '<a href="' get_permalink($page->ID) . '">' get_the_title($page->ID) . '</a>';
        
$parent_id  $page->post_parent;
      }