WordPress: aggiungere ai post i link per la condivisione sui social network

Possiamo aggiungere dei link per la condivisione sui social network ai nostri post di WordPress con molta facilità. Vediamo come.

Il seguente codice va inserito nel file single.php all'interno del Loop di WordPress:

[php htmlscript="true"] <a rel="nofollow" href="http://twitter.com/home?status=<?php echo urlencode("Sto leggendo: "); ?><?php the_permalink(); ?>">Tweet</a> <a rel="nofollow" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&amp;t=<?php echo urlencode(get_the_title($id)); ?>">Condividi su Facebook</a>
Torna su