Page template is accessing the incorrect posts?

You pull content normally. You don’t have to specify any id, as page/post will use template it is assigned to, so I don’t really understand your question.

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