Wordpress'de aşağıdaki sayfalandırma kodunu kullanıyorum. Normalde kategorilerde 12 içerikten sonra +1 sayfa şeklinde çalıyor ve ayarları "Ayarlar > Okuma > En fazla gösterilecek blog sayfası adedi" kısmına girilen değerden alıyor ama ben özel bir sayfa yaptım ve bu fonksiyonu düzeltip 12 yerine manuel olarak koda 18 girmek istiyorum, kodun neresini nasıl revize etmem lazım?
Bahsettiğim alan şurası:

/**
* Displays navigation to numeric pages when applicable.
* @since Laura 1.0
*/
function laura_numeric_pagination($pages = '', $range = 1) {
$pagination_number = get_theme_mod( 'laura_pagination_max_number', 4 ) / 2;
global $paged;
$showitems = ($range * 2)+1; // links to show
// init paged
if(empty($paged))
$paged = 1;
// init pages
if($pages == '') {
global $wp_query;
$pages = $wp_query->max_num_pages;
if(!$pages)
$pages = 1;
}
// Translation Text
$first_page_text = get_theme_mod( 'laura_translation_first_page' );
$previous_page_text = get_theme_mod( 'laura_translation_previous_page' );
$next_page_text = get_theme_mod( 'laura_translation_next_page' );
$plast_page_text = get_theme_mod( 'laura_translation_last_page' );
// if $pages more then one post
if(1 != $pages) {
echo '<div class="col-xs-12 center-xs numeric-pagination">';
// First link
if( get_theme_mod( 'laura_pagination_first_last' , 1 ) == 1 ) {
if($paged > 2 && $paged > $range+1 && $showitems < $pages)
if( get_theme_mod( 'laura_translation_active', 0 ) == 1 && !empty( $first_page_text ) ) {
if( '-1' !== $first_page_text ) {
echo '<a href="' . get_pagenum_link(1) . '">'; echo $first_page_text; echo '</a>';
}
} else {
echo '<a href="' . get_pagenum_link(1) . '">'; _e( 'First Page', 'laura' ); echo '</a>';
}
}
// Previous link
if( get_theme_mod( 'laura_pagination_prev_next' , 1 ) == 1 ) {
if($paged > 1 && $showitems < $pages)
if( get_theme_mod( 'laura_translation_active', 0 ) == 1 && !empty( $previous_page_text ) ) {
if( '-1' !== $previous_page_text ) {
echo '<a href="'.get_pagenum_link($paged - 1).'">'; echo $previous_page_text; echo '</a>';
}
} else {
echo '<a href="'.get_pagenum_link($paged - 1).'">'; _e( 'Previous Page', 'laura' ); echo '</a>';
}
}
// Links of pages
for ($i=1; $i <= $pages; $i++)
if (1 != $pages && ( !($i >= $paged+$range+$pagination_number || $i <= $paged-$range-$pagination_number) || $pages <= $showitems ))
echo ($paged == $i) ? '<span>' . $i . '</span>' : '<a href="' . get_pagenum_link($i) . '">' . $i .
'</a>';
// Next link
if( get_theme_mod( 'laura_pagination_prev_next' , 1 ) == 1 ) {
if ($paged < $pages && $showitems < $pages)
if( get_theme_mod( 'laura_translation_active', 0 ) == 1 && !empty( $next_page_text ) ) {
if( '-1' !== $next_page_text ) {
echo '<a href="' . get_pagenum_link($paged + 1) . '">'; echo $next_page_text; echo '</a>';
}
} else {
echo '<a href="' . get_pagenum_link($paged + 1) . '">'; _e( 'Next Page', 'laura' ); echo '</a>';
}
}
// Last link
if( get_theme_mod( 'laura_pagination_first_last' , 1 ) == 1 ) {
if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages)
if( get_theme_mod( 'laura_translation_active', 0 ) == 1 && !empty( $plast_page_text ) ) {
if( '-1' !== $plast_page_text ) {
echo '<a href="' . get_pagenum_link($pages) . '">'; echo $plast_page_text; echo '</a>';
}
} else {
echo '<a href="' . get_pagenum_link($pages) . '">'; _e( 'Last Page', 'laura' ); echo '</a>';
}
}
echo '</div>';
}
}