WordPress PageNavi Plugin not working in category.php

I had the same problem but you just have to put the native loop in category.php which is this:

<?php if ( have_posts() ) : while ( have_posts() ) : the_post();  ?>

then put the function of the plugin:

<?php endwhile; wp_pagenavi(); endif; ?>

Also check in reading settings, how many posts you want to show.

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