Codex tools: Log in
Languages: English • Bahasa Indonesia • 日本語 • (Add your language)
Contents |
Berfungsi untuk menampilkan halaman post dengan menggunakan satu atau lebih tanda <!--nextpage--> Quicktag ). Fungsi ini hampir sama dengan link_pages() (tidak digunakan lagi), bedanya adalah argumen diberikan dengan jenis format string yang berbeda. Tag ini harus digunakan di dalam The_Loop.
<?php wp_link_pages( $args ); ?>
<?php $args = array(
'before' => '<p>' . __('Pages:'),
'after' => '</p>',
'link_before' => ,
'link_after' => ,
'next_or_number' => 'number',
'nextpagelink' => __('Next page'),
'previouspagelink' => __('Previous page'),
'pagelink' => '%',
'more_file' => ,
'echo' => 1 ); ?>
Displays page-links by default with paragraph tags before and after, using Next page and Previous page, listing them with page numbers as Page 1, Page 2 and so on.
<?php wp_link_pages(); ?>
Displays page-links wrapped in paragraph tags.
<?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=page %'); ?>
Displays page-links in DIV for CSS reference as <div id="page-links">.
<?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>
Since: 0.71
wp_link_pages() is located in wp-includes/post-template.php.
body_class(), next_image_link(), next_post_link(), next_posts_link(), post_class(), post_password_required(), posts_nav_link(), previous_image_link(), previous_post_link(), previous_posts_link(), single_post_title, sticky_class(), the_category(), the_category_rss(), the_content(), the_content_rss(), the_excerpt(), the_excerpt_rss(), the_ID(), the_meta(), the_shortlink(), the_tags(), the_title(), the_title_attribute(), the_title_rss(), wp_link_pages()