Pagination not working with WP_Query (creates links but no page)

wp_pagenavi( array( 'query' => $wp_query ) ); change to wp_pagenavi($wp_query);

I think that $wp_query is the variable that you define! That is the thing you will need to insert! Sometimes, you will need to pass $wp_query->max_num_pages depend on your custom query request

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