This function has been deprecated. Use wp_link_pages() instead.

link_pages( string $before = '<br />', string $after = '<br />', string $next_or_number = 'number', string $nextpagelink = 'next page', string $previouspagelink = 'previous page', string $pagelink = '%', string $more_file = '' )

Print list of pages based on arguments.


Description

See also


Parameters

$before

(Optional)

Default value: '<br />'

$after

(Optional)

Default value: '<br />'

$next_or_number

(Optional)

Default value: 'number'

$nextpagelink

(Optional)

Default value: 'next page'

$previouspagelink

(Optional)

Default value: 'previous page'

$pagelink

(Optional)

Default value: '%'

$more_file

(Optional)

Default value: ''


Return

(string)


Source

File: 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__, 'WP-2.1.0', 'wp_link_pages()' );

	$args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file');
	return wp_link_pages($args);
}


Changelog

Changelog
Version Description
WP-2.1.0 Use wp_link_pages()
WP-0.71 Introduced. This function has been deprecated. Use wp_link_pages() instead.