Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/01/2012, 16:37
Avatar de carlos_belisario
carlos_belisario
Colaborador
 
Fecha de Ingreso: abril-2010
Ubicación: Venezuela Maracay Aragua
Mensajes: 3.156
Antigüedad: 14 años
Puntos: 461
Respuesta: Hook para eliminar continue_reading en Twentyten childtheme

es que no es necesario editar el twentyten_continue_reading_link, de hecho tengo estas dos funciones con ese theme y funciona bien
Código PHP:
Ver original
  1. /**
  2. *
  3. * function para la cantidad de palabras a mostrar
  4. */
  5. function new_excerpt_length($length) {
  6.     return 60;
  7. }
  8. add_filter('excerpt_length', 'new_excerpt_length');
  9.  
  10. /**
  11. *
  12. * function para mostrar el link de leer mas
  13. */
  14. function new_excerpt_more($more) {
  15.        global $post;
  16.     return '[...] <a href="'. get_permalink($post->ID) .'"> Leer más</a> ';
  17. }
  18. add_filter('excerpt_more', 'new_excerp
con esas dos y utilizando the_excerpt() debería de funcionarte.

Pero como te dije antes las dos funciones que hiciste hacen lo mismo generar un link por eso el doble link creo yo, saludos
__________________
aprende d tus errores e incrementa tu conocimientos
it's not a bug, it's an undocumented feature By @David
php the right way