Home › Forum › Problemi Vari con WP › get_avatar non funziona
-
AutorePost
-
-
4 Gennaio 2011 alle 0:52 #16226smartmousePartecipante
Salve, oggi ho scoperto la funzione get_avatar in gradi di creare un avatar per ogni utente che commenta un post!
Ebbene, ho cercato di utilizzarla nel mio vecchio tema (Movie World) ma non ne vuole sapere di funzionare.
Sono sicuro che si tratti del tema perchè riesco a vedere gli avatar dalla bacheca (lato admin):
http://img190.imageshack.us/img190/595/bachecay.png
Inoltre scegliendo un altro tema (Twenty Ten 1.1 ad esempio) funziona senza problemi.
Nel mio tema attuale (Movie World) i commenti appaiono nel seguente modo:
http://img831.imageshack.us/img831/370/primas.png
E il file comments.php del template ha il seguente codice:
<!-- Gravatar -->
&size=50&default=<?php echo urlencode(get_bloginfo('template_directory').'/images/default-gravatar.jpg') ?>" width="50" height="50" alt=" " class="gravatar" align="left" />
<h3 class="comment-title"><?php comment_author_link() ?> <?php _e('ha scritto'); ?></h3>
Tale codice l’ho modificato nel seguente modo:
<!-- Gravatar -->
" width="50" height="50" alt=" " class="gravatar" align="left" />
<h3 class="comment-title"><?php comment_author_link() ?> <?php _e('ha scritto'); ?></h3>
Però ottengo questo risultato: http://img844.imageshack.us/img844/8079/dopoy.png
Quale può essere la causa del problema? Mi sfugge qualcosa?`
-
4 Gennaio 2011 alle 14:38 #80020smartmousePartecipante
Ci deve essere qualche problema con questo forum, perchè il codice postato tra i tag < code > viene storpiato.
Se c’è qualcuno in grado di aiutarmi lo prego di consultare questo link:
http://wordpress.org/support/topic/get_avatar-doesnt-work-on-my-theme?replies=1#post-1867706
dove potrà visualizzare il codice corretto.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.