我试图一次删除大约250篇帖子,但下一页显示错误:
Request-URI Too Large
The requested URL\'s length exceeds the capacity limit for this server
Wordpress是否需要使用HTTP Post操作来删除帖子?我试图一次删除大约250篇帖子,但下一页显示错误:
Request-URI Too Large
The requested URL\'s length exceeds the capacity limit for this server
Wordpress是否需要使用HTTP Post操作来删除帖子?谢谢我最终通过PHPMyAdmin删除了它们。他们都属于同一类。
制作自定义页面模板并将此代码放入其中。它将根据您的需要删除任意多的页面。
<?php
global $post;
$args = array( \'numberposts\' => 250 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :
wp_delete_post( $post->ID, true );
endforeach; ?>
我试图一次删除大约250篇帖子,但下一页显示错误:
Request-URI Too Large
The requested URL\'s length exceeds the capacity limit for this server
Wordpress是否需要使用HTTP Post操作来删除帖子?谢谢我最终通过PHPMyAdmin删除了它们。他们都属于同一类。
制作自定义页面模板并将此代码放入其中。它将根据您的需要删除任意多的页面。
<?php
global $post;
$args = array( \'numberposts\' => 250 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :
wp_delete_post( $post->ID, true );
endforeach; ?>
我试图一次删除大约250篇帖子,但下一页显示错误:
Request-URI Too Large
The requested URL\'s length exceeds the capacity limit for this server
Wordpress是否需要使用HTTP Post操作来删除帖子?谢谢我最终通过PHPMyAdmin删除了它们。他们都属于同一类。
制作自定义页面模板并将此代码放入其中。它将根据您的需要删除任意多的页面。
<?php
global $post;
$args = array( \'numberposts\' => 250 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :
wp_delete_post( $post->ID, true );
endforeach; ?>