먼저 답변감사드립니다.
1, 2, 3, 4..... 링크속성을 보면 &page=1, &page=2 .. 잘 되어있습니다.
페이지번호를 클릭하고 페이지가 리프레쉬 되면 파라미터가 없어지내요. ㅜㅜ
참고로 그누커머스 플러그(워드프레스)인 설치 1주일되었습니다.
/lib/gc_comnon.lib.php 의 get_pageing 내용입니다.(아래)
function gc_get_paging($write_pages, $cur_page, $total_page, $url, $add='', $naming='')
{
$str = '';
if( !$write_pages ){
$write_pages = 1;
}
$naming = $naming ? $naming : 'page';
if( $add && is_string($add) ){
$add = array_filter(wp_parse_args($add));
$url = add_query_arg( $add, $url );
}
if ($cur_page > 1) {
$str .= '<a href="'.add_query_arg( array( $naming => 1), $url).'" class="pg_page pg_start">'.__('처음', GC_NAME).'</a>'.PHP_EOL;
}
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
$end_page = $start_page + $write_pages - 1;
if ($end_page >= $total_page) $end_page = $total_page;
if ($start_page > 1) $str .= '<a href="'.add_query_arg( array( $naming => $start_page-1), $url).'" class="pg_page pg_prev">'.__('이전', GC_NAME).'</a>'.PHP_EOL;
if ($total_page > 1) {
for ($k=$start_page;$k<=$end_page;$k++) {
if ($cur_page != $k)
$str .= '<a href="'.add_query_arg( array( $naming =>$k ), $url).'" class="pg_page">'.$k.'<span class="sound_only">'.__('페이지', GC_NAME).'</span></a>'.PHP_EOL;
else
$str .= '<span class="sound_only">'.__('열린', GC_NAME).'</span><strong class="pg_current">'.$k.'</strong><span class="sound_only">'.__('페이지', GC_NAME).'</span>'.PHP_EOL;
}
}
if ($total_page > $end_page) $str .= '<a href="'.add_query_arg( array( $naming => $end_page+1), $url).'" class="pg_page pg_next">'.__('다음', GC_NAME).'</a>'.PHP_EOL;
if ($cur_page < $total_page) {
$str .= '<a href="'.add_query_arg( array( $naming => $total_page), $url).'" class="pg_page pg_end">'.__('맨끝', GC_NAME).'</a>'.PHP_EOL;
}
if ($str){
$str_html = "<nav class=\"pg_wrap\"><span class=\"pg\">{$str}</span></nav>";
return apply_filters( 'gc_get_paging', $str_html, $cur_page, $total_page, $url, $add );
} else {
return "";
}
}
어디부분을 수정해야할지......알려주시면 감사합니다.