Testi predefiniti che potete inserire nella nuova pagina:
Pagina in fase di traduzione e/o adattamento
Pagina da rivedere e/o aggiornare
Pagina da adattare al wiki (aspetto e convenzioni grafiche)
Questa pagina è aperta ai tuoi interventi. Puoi contribuire cliccando su "Modifica" dal menu in alto.
Tag Template:
Descrizione
Displays links for next and previous pages. Useful for providing "paged" navigation of index, category and archive pages.
For displaying next and previous post navigation on individual posts, see next_post() ? and previous_post() ?.
Utilizzo
<?php posts_nav_link('separator','prelabel','nextlabel'); ?>
Note that since weblog posts are traditionally listed in reverse chronological order (with most recent posts at the top), there is some ambiguity in the definition of "next page". WordPress defines "next page" as the "next pagetoward the past". In WordPress 1.5, the default Kubrick theme addresses this ambiguity by labeling the "next page" link as "previous entries". See Esempi: Kubrick Theme Format.
== Esempi == <span id="Esempi"></span>
Utilizzo Standard
By default, the posts_nav_link look like this:
<div style="border:1px solid blue; width:50%; padding:10px">« Previous Page — Next Page »</div>
<?php posts_nav_link(); ?>
In Centered DIV
Displays previous and next page links ("previous page · next page") centered on the page.
<div style="text-align:center;">
<?php posts_nav_link('·','previous page','next page'); ?>
</div>
Kubrick Theme Format
The Kubrick theme format for posts navigation.
<div class="navigation">
<div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
<div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div>
</div>
Customizing the Link Text
You can change the text in each of the links and in the text in between the links.
<div style="border:1px solid blue; padding:10px">You can go back to the previous page or you can go forward to the next page.</div>
<p><?php posts_nav_link('or','You can go back
to the previous page','you can go
forward to the next page'); ?>.</p>
Parametri
- separator
- (stringa) Text displayed between the links.
- * Defaults to
' - :' in 1.2.x.
:* Defaults to '—' in 1.5.
- prelabel
- (stringa) Link text for the previous page.
:* Defaults to '<< Previous Page' in 1.2.x.
:* Defaults to '« Previous Page' in 1.5.
- nextlabel
- (stringa) Link text for the next page.
:* Defaults to 'Next Page >>' in 1.2.x.
:* Defaults to 'Next Page »' in 1.5
Marcatori Correlati
the_ID, the_title, single_post_title, the_title_rss, the_content, the_content_rss, the_excerpt, the_excerpt_rss, previous_post, next_post, posts_nav_link, the_meta
Come passare Parametri ai Tag tramite parametri in stile PHP