WordPress Post # of # filtered by category slug

You should use one of query functions – get_posts(), it allows to very flexibly configure set of posts to retrieve.

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