Created
June 1, 2020 07:38
-
-
Save Postnov/bbab3c8be7e03dbc031ed5ecd8a7959f to your computer and use it in GitHub Desktop.
Пагинация для разрыва детальной страницы
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? if (current_user_can( 'administrator' )): ?> | |
<?php | |
wp_link_pages( [ | |
'before' => '<p>' . __('Pages:'), | |
'after' => '</p>', | |
'link_before' => '', | |
'link_after' => '', | |
'next_or_number' => 'number', | |
'nextpagelink' => __('Next page'), | |
'previouspagelink' => __('Previous page'), | |
'pagelink' => '%', | |
'echo' => 1, | |
'next_or_number' => 'next', | |
'nextpagelink' => 'Описание >>', | |
'previouspagelink' => '<< Процесс' | |
] ); | |
?> | |
<? endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment