Specifying a template for custom post type pages

Have a look at the template hierarchy that WordPress follows.
Since the sub page is a single custom post type. You could put the code you require to output for the sub pages in single-[post-type].php

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