Can’t Export Custom Post Types With Export Tool In A Custom Theme

I found the solution to this problem. It was the security code below that I had in my .htaccess file that was being used to stop author scans of my site. On removing this I could then export any type of post with the export tool.

# BEGIN block author scans
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (author=\d+) [NC]
RewriteRule .* - [F]
# END block author scans

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