- Home
- Categorie
- Coding e Sistemistica
- PHP
- Inserire link nel codice
-
Inserire link nel codice
Questo codice mette a video automaticamente il numero dei messaggi sotto le anteprime come si può vedere qui: https://albertifoto.altervista.org
Io avrei bisogno di modificare questo codice in modo che la scritta diventi un link che porta alla pagina dell'articolo
[PHP]<?php
if (1 == get_comments_number()) {
printf(('One thought on “%2$s”', 'wp-portfolio') , number_format_i18n(get_comments_number()) , '<span>' . get_the_title() . '</span>');
}else {
printf(('%1$s thoughts on “%2$s”', 'wp-portfolio') , number_format_i18n(get_comments_number()) , '<span>' . get_the_title() . '</span>');
}
?>
[/PHP]