Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/02/2011, 15:51
2ruedas
 
Fecha de Ingreso: enero-2009
Mensajes: 5
Antigüedad: 15 años, 2 meses
Puntos: 0
Respuesta: Ayuda Php de Wordpress

creo que ya se como hacerlo funcionar, tenia que incluir una funcion que ya esta incluida, pero en la pagina funtions tengo que incluir otra que me da error, alguien puede decirme en que falla:
la pagina funtions tiene esto:

Código PHP:
Ver original
  1. <?php
  2.  
  3. if (function_exists('register_sidebar'))
  4. {
  5.     register_sidebar(array(
  6.         'before_widget' => '<li id="%1$s" class="widget %2$s">',
  7.         'after_widget' => '</li>',
  8.         'before_title' => '<h2 class="widgettitle">',
  9.         'after_title' => '</h2>',
  10.     ));
  11. }
  12. ?>
  13.  
  14.  y tengo que incluir esto pero da error:
  15.  
  16. if ( ! function_exists( 'twentyten_comment' ) ) :
  17. /**
  18.  * Template for comments and pingbacks.
  19.  *
  20.  * To override this walker in a child theme without modifying the comments template
  21.  * simply create your own twentyten_comment(), and that function will be used instead.
  22.  *
  23.  * Used as a callback by wp_list_comments() for displaying the comments.
  24.  *
  25.  * @since Twenty Ten 1.0
  26.  */
  27. function twentyten_comment( $comment, $args, $depth ) {
  28.     $GLOBALS['comment'] = $comment;
  29.     switch ( $comment->comment_type ) :
  30.         case '' :