Custom PT, Taxonomys and wordpress query

Categories by default only show posts, as do tags. This limitation is not enforced on custom taxonomies, and it can be overriden via a filter.

If you place this into your functions.php, then posts of type help-line will be shown in the listings.

// before we grab the posts in a query
add_filter('pre_get_posts', 'wpse49960_query_post_type');

function wpse49960_query_post_type($query) {
    // if it's a category/tag archive, and there are no 'suppress_filters'
    if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
        // then set the 'post_type' query var so that it includes our custom post type, not just 'post'
        $query->set( 'post_type', array(
            'post', 'help-line','nav_menu_item'
        ));
        return $query;
    }
}

Also, for which template wordpress loads, see here:

http://codex.wordpress.org/Template_Hierarchy

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