link_pages
Print list of pages based on arguments.
Description
(string) link_pages( $before = '<br />', $after = '<br />', (string) $next_or_number = 'number', (string) $nextpagelink = 'next page', (string) $previouspagelink = 'previous page', , (string) $more_file = '' );
Returns (string)
Parameters (7)
- 0. $before — Optional. (string) =>
'
' - The before.
- 1. $after — Optional. (string) =>
'
' - The after.
- 2. $next_or_number — Optional. (string) =>
'number'
- The next or number.
- 3. $nextpagelink — Optional. (string) =>
'next page'
- The nextpagelink.
- 4. $previouspagelink — Optional. (string) =>
'previous page'
- The previouspagelink.
- 5. $pagelink — Optional. (string) =>
'%'
- The pagelink.
- 6. $more_file — Optional. (string) =>
''
- The more file.
Usage
if ( !function_exists( 'link_pages' ) ) { require_once ABSPATH . WPINC . '/deprecated.php'; } // The before. $before = '
'; // The after. $after = '
'; // The next or number. $next_or_number = 'number'; // The nextpagelink. $nextpagelink = 'next page'; // The previouspagelink. $previouspagelink = 'previous page'; // The pagelink. $pagelink = '%'; // The more file. $more_file = ''; // NOTICE! Understand what this does before running. $result = link_pages($before, $after, $next_or_number, $nextpagelink, $previouspagelink, $pagelink, $more_file);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/deprecated.php
- function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page',
- $pagelink='%', $more_file='') {
- _deprecated_function( __FUNCTION__, '2.1.0', 'wp_link_pages()' );
- $args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file');
- return wp_link_pages($args);
- }