Nikynik

Tag: wordpress

Come settare un gravatar di default in Wordpress 2.7

by nikynik on feb.23, 2009, under Tutorials

Con l’avvento di Wordpress 2.7 molte funzioni sono cambiate. Tra le tante c’è da notare come sia cambiato il loop dei commenti che oggi si richiama facilmente solamente con l’inserimento della funzione < ?php wp_list_comments(); ?>.
L’abilità di impostare un gravatar personalizzato nella nuova versione viene richiamata all’interno del file function.php del template che dovrà contenere il seguente codice:
< ?php
add_filter( 'avatar_defaults', 'YOURTHEMENAME_addgravatar' );
function YOURTHEMENAME_addgravatar( $avatar_defaults ) {
$myavatar = get_bloginfo('template_directory') . '/images/gravatar.png';
$avatar_defaults[$myavatar] = ‘GRAVATAR NAME DISPLAYED IN WORDPRESS’;
return $avatar_defaults;
}
?>

Basta semplicemente sostituire NOMEDELTUOTEMA con quello del template ed inserire nel file comments.php il seguente codice per definire la dimensione del gravatar
< ?php wp_list_comments(array('avatar_size'=>70, )); ?> ed il gioco è fatto.

Articolo originale di Kremalicious
Esempio di call-back di J.Clark
Wiki su wordpress.org

Popularity: 4%

Leave a Comment :, , , more...

Aggiornarnamento automatico di wordpress

by nikynik on feb.10, 2009, under Tutorials

fonte: http://wordpress.tv/2009/02/08/aggiornamento-automatico-di-wordpress-27/

Popularity: 4%

Leave a Comment :, more...

Il mio nuovo template.

by nikynik on mag.11, 2008, under Templates


Ed eccoci dinuovo a scrivere qualcosa. Questo è il test per il mio nuovo template il quale l’ho chiamato Two Dot Five in omaggio alla nuova versione di wordpress. Al momento non è disponibile per il download in quanto sto testando che non ci siano errori. Fra qualche giorno sarà on line il Download. Sono graditi commenti e quant’altro.

Popularity: 1%

3 Comments :, , more...

ABAC reloaded!

by nikynik on gen.07, 2008, under Templates

english italian  Articolo multilingue / Multilanguage post

ABAC

ABAC revisited and corrected.
Download Now

Abac Theme Downloads: 5443 times

Popularity: 50%

17 Comments :, , , , more...

Download Seven.

by nikynik on ago.02, 2007, under Templates

english italian  Articolo multilingue / Multilanguage post

Seven is ready for the download. You can find some aspects of my template at the Seven page in the menu where you can find the plugins supported and the relative typography. Seven can be localized.

Seven Downloads: 3305 times

Popularity: 100%

5 Comments :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...