Risposte nei forum create
-
AutorePost
-
ArturoPartecipante
controlla i permalink e prova a rigenerarli, sara’ sicuramente un loro problema.
ArturoPartecipantee tra l’altro il link sta nel nick, cliccabile…
11 Luglio 2008 alle 10:21 in risposta a: Super problema!!! Non vedo più il sito ma i file sà¬. #55719ArturoPartecipantedare info in piu’ no? i test che vengono richiesti quando si crea un post?
php5 non puo’ essere il problema visto che wp nelle ultime versioni usa _anche_ php5. prova a fare un backup di tutto, db e files, poi cancella tutti i file seguendo le indicazioni di aggiornamento che piu’ volte si sono trattate sul blog e sul forum, e vedi se cosi’ risolvi, in alternativa prova con un backup a fare un installazione locale e vedere se il db funziona.
ArturoPartecipantenel wiki leggiti questa sezione e’ piena di info utili per quello che vuoi fare tu, puoi utilizzare anche la grafica attuale del sito inserendo le funzioni di wp, leggi il wiki che e’ pieno di info ed esempi.
ArturoPartecipanteper quello che riguarda i permalink, dovresti avere una cosa simile a questa:
< a title=”Permanent Link a: <?php the_title(); ?>” href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></ a>
che deve diventare semplicemente
<?php the_title(); ?>
in modo da non creare il link al permalink.
per quello che riguarda l’eliminazione di tutto quello che riguarda i commenti ecc, devi editare i file index.php, archive.php, category.php e se ce l’hai anche in page.php togliendo la parte di codice che va a richiamare i commenti e tutte le cose che non vuoi vengano visualizzate.
per maggiori info su come fare leggi nel wiki dissezione di un tema.
ArturoPartecipantewolly intendeva, quale piattaforma per realizzare il sito usi… wp, joomla, xoops, phpnuke…
ma da quanto ho capito usi wp, quindi non ci dovrebbero essere problemi, esporti i post/commenti dal vecchio sito con wp, e li importi sul nuovo con l’apposito tool integrato in wp.
ArturoPartecipanteah, l’errore tuo era nel fatto che non chiudevi la graffa ad ogni apertura, o fai gli if e gli elseif oppure chiudi e riapri ogni volta la funzione.
ArturoPartecipanteallora ci sono piu’ modi o fare una cascata di if ed elseif in questo modo:
<?php if (is_home()) {
… quello che vuoi nella home…;
} elseif (is_search()) {
… nel search…;
} elseif (is_single()) {
… nell’articolo singolo…;
} elseif (is_page()) {
… nella pagina…;
} elseif (is_category()) {
… categorie…;
} elseif (is_archive()) {
… categorie…;
} elseif (is_month()) {
… mese…;
}
?>
oppure se vuoi semplificarti la vita, io preferisco farlo per ognuno cosi’:
<?php if (is_home()) { ?> quello che vuoi che appaia <?php } ?>
naturalmente copi n volte il tutto e cambi is_home() con la parte is_page, is_archive ecc.
ArturoPartecipante<?php
if (is_home()) {
[… il codice che vuoi stampare in home …]
}
?>
se sono funzioni di wp, in alternativa
<?php if (is_home()) { ?> … codice … <?php } ?>
in questo caso puo’ essere html, testo o quello che vuoi.
ArturoPartecipantese cerchi nel forum ci sono discussioni che spiegano anche con esempi funzionanti come utilizzare le funzioni di wp fuori dalla directory d’installazione, in questo modo puoi fare quello che dici tu, avere la home del sito come index.php che usa le funzioni di wp installato in /blog/.
-
AutorePost