next_posts() WP 0.71
Displays or retrieves the next posts page link.
Хуков нет.
Возвращает
Строку/null. The link URL for next posts page if $echo = false.
Использование
next_posts( $max_page, $echo );
- $max_page(число)
- Max pages.
- $echo(true/false)
- Whether to echo the link.
По умолчанию: true
Список изменений
С версии 0.71 | Введена. |
Код next_posts() next posts WP 5.6.2
function next_posts( $max_page = 0, $echo = true ) {
$output = esc_url( get_next_posts_page_link( $max_page ) );
if ( $echo ) {
echo $output;
} else {
return $output;
}
}