Why won’t my paged wp_query work? [duplicate]

Try to change the pt_pagination position

<?php wp_reset_postdata();?>

<?php pt_pagination(); ?>

Or you can try Pippin code https://github.com/pippinsplugins/EDD-Starter-Theme/blob/master/front-page.php#L5-L14

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