if (!is_user_logged_in()) {
send_error_die(__('You are not logged.', "string"));
}
if ( !current_user_can( 'invoices' ) ) {
die('You don\'t have access to invoices');
}
if ( have_posts() ) :
query_posts('posts_per_page=0');
if ( have_posts() ) :