wordpress paginate_links all pages same result -


i try make own search form on wordpress site. result want no problem, can't paginate_links working.

i tested in , output parameters wp_query , seems oke. input paginate_links 775 results, give 16 page's 50 product titles.

the problem: pages give same result page 1. did ready done: posted wordpress forum hint's @ 3days. tested parameters. merged get_col reflect wp_query add_hook. checking permalink , paged.

 global $wpdb;  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;  if ($paged == 1) {    $limit = "50";  } else {    $firstpage = ($paged-1)*50;    $lastpage = $paged*50;    $limit =  $firstpage.",".$lastpage;  }   $term = get_term_by('name', $_request["product_cat"], 'product_cat');  //   echo "id". $term->term_id;   $mypostids = $wpdb->get_col("select * $wpdb->posts, $wpdb->term_relationships                                 $wpdb->posts.post_title       '".$_request["start_letter"]."%'                                 , $wpdb->posts.post_type='product'                                 , $wpdb->term_relationships.term_taxonomy_id=".$term->term_id."                                 , $wpdb->term_relationships.object_id=$wpdb->posts.id                                 , $wpdb->posts.post_excerpt '%".$_request["product_tag"]."%'                                 order $wpdb->posts.post_title asc ");   $argssearch = array('post__in'=> $mypostids,                     'post_type'=>'product',                   'orderby'=>'title',                     'order'=>'asc',                     'posts_per_page'=>50,                     'product_tag'=>urldecode( $_request["product_tag"]),                     'product_cat'=>urldecode( $_request["product_cat"]),                     'paged=' => $paged);    $querysearch = new wp_query($argssearch); echo "<br/>-".$querysearch->found_posts."-".$paged."<br/>" ; $big = 999999999; // need unlikely integer  echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '', 'current' => max( 1, get_query_var('paged') ), 'total' => $querysearch->max_num_pages, 'add_args' => array('start_letter'=>$_request["start_letter"],                     'product_tag'=>urlencode ($_request["product_tag"]),                     'product_cat'=>urlencode ($_request["product_cat"]),                     'zoek' => 'zoek'    ) )); 


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -