Pagination not working with pagenavi

I added the following to my functions.php file and it worked: function toolset_fix_custom_posts_per_page( $query_string ){ if( is_admin() || ! is_array( $query_string ) ) return $query_string; $post_types_to_fix = array( array( ‘post_type’ => ‘news_article’, ‘posts_per_page’ => 6 ), // add another if you want /* array( ‘post_type’ => ‘movie’, ‘posts_per_page’ => 2 ), */ ); foreach( $post_types_to_fix … Read more

Pagenavi Plugin and Custom Post Type – Multipage results

you are quering the same posts over and over, and that is way you are getting the same posts, to fix it just add ‘paged’ => get_query_var(‘paged’) to your query arguments, so change: <?php $portfolioloop = new WP_Query( array( ‘post_type’ => ‘portfolio’, ‘posts_per_page’ => 12 ) ); ?> into: <?php $portfolioloop = new WP_Query( array( … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)