Can't Export Custom Post Types With Export Tool In A Custom Theme
-
22-04-2021 - |
سؤال
I have a custom theme and when I try to export the posts for the custom post type called 'news' via Dashboard > Tools > 'News' > Download Export File
(image attached) I get a 403 'Forbidden' message on my localhost set up. On the live site I get a 404 error.
Does anybody know how to correct this issue?
Thanks in advance for an assistance.
المحلول
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
لا تنتمي إلى wordpress.stackexchange