Código PHP:
function listar_aleatorio( $total, $id = NULL, $tipo = 1, $recortartitulo = 100, $recortardescripcion = 200) {
$listado = '';
$tags = '';
$upload_dir = wp_upload_dir();
foreach( ( get_the_tags( $id ) ) as $tag ) {
$tags .= $tag->name . ',';
}
$my_query2 = new WP_Query( 'posts_per_page=' . $total . '&ignore_sticky_posts=1&orderby=rand&tag=' . $tags );
Listo para copiar y pegar. Solo era cambiar un par de palabras:
http://codex.wordpress.org/Function_Reference/get_the_tags