Email: info@wpitaly.it
Trovato!!!
Il problema stava nel fatto che utilizzavo la funzione di WP the_date() (pensata per visualizzare una data) invece della funzione get_the_date() che invece recupera semplicemente il valore.
Ora funziona.
Il codice corretto se qualcuno vuole riutilizzarlo quindi è questo:
Codice:
<?php $ultimo= (int) (date(“Ymd”, strtotime(get_lastpostmodified())));?>
” title=”<?php the_title(); ?>”><h1><?php the_title() ?></h1>
<?php $data= (int) date(get_the_time(Ymd));
if ($data == $ultimo) the_content();
else{
the_excerpt();?>
<p>” class=”continue”>Continua a leggere questa roba qua »</p>
<?php } ?>
Saluti
Grazie Wolly per la risposta, ma devo ammettere che la pagina non mi aiuta tantissimo a risolvere i miei dubbi…
Risolto.
Ho inserito nel wp-config la porta per l’host del database.
In pratica è diventato
Host del database: localhost:88888
Max
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0