Using wordpress template tags within an array

Try this:

$page = $wp_query->get_queried_object();
$slug = $page->post_name;

PS I think next WP release will get proper custom post archives or something around that…

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