Home › Forum › Problemi Vari con WP › Aggiungere collegamento pagine più vecchie…
-
AutorePost
-
-
20 Marzo 2009 alle 14:24 #9869alessandro308Partecipante
Salve,
qualcuno sa dirmi il codice da mettere un fondo alla pagina con scritto “Leggi gli articoli più vecchi”???
Non so perchè ma un tema che ho scaricato non c’è l’ha e quindi i visitatori non possono vedere tutti gli articoli.
Mi serve solo il codice da mettere nella pagina template.php se non sbaglio (correggetemi)…
Il tema che non ha la funzione è Illacrimo!
Ciao
-
20 Marzo 2009 alle 14:50 #63964
-
20 Marzo 2009 alle 14:58 #63965alessandro308Partecipante
ma dove dovrei inserirlo, perchè se non lo riesco a vedere se lo inserisco nella pagina page.php
-
20 Marzo 2009 alle 15:00 #63966LvcanvsPartecipante
Questo direi che lo devi inserire in index.php (che è la pagina che contiene gli articoli).
-
20 Marzo 2009 alle 15:05 #63967alessandro308Partecipante
ma poi, nel caso entreranno in una categoria, poichè non sarà più index ma …/category/nome-categoria/ non si vedrà più, a me serve che si veda sotto ogni pagina!
Cioè, ogni pagina deve vedere questo codice in modo che possa vedere il collegamento ai post della categoria più vecchi…
-
20 Marzo 2009 alle 15:09 #63968LvcanvsPartecipante
Lo stesso lo inserisci anche in archive.php.
Page.php è il template per le pagine statiche e nulla ha a che fare con i post.
Edit: scusa il codice è differente: ?php posts_nav_link() ?
-
20 Marzo 2009 alle 15:23 #63972alessandro308Partecipante
mi puoi scrivere il codice per completoperchè cosଠnon capisco…
Di questo codice
<div class="navigation">
<div class="alignright"><?php previous_posts_link('Post più recenti... »') ?></div>
<div class="alignleft"><?php next_posts_link('« Post più vecchi...') ?></div>
</div>
Cosa devo modificare?
-
20 Marzo 2009 alle 15:29 #63973
-
20 Marzo 2009 alle 15:40 #63975alessandro308Partecipante
ok gr 1000
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.