• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

WordPress Export Tools: Fix For Incomplete Exports

LPH

Flight Director
Flight Instructor
Loren's blog is being moved off the old server and onto the new one. I started the move months ago and ran into a problem that the export file was cutting off too soon.

The solution is fairly simple.

Code:
/**
 
* Dynamically increase allowed memory limit for export.
 
*
 
*/
 
function my_export_wp() {
 
ini_set('memory_limit', '1024M');
 
}
 
add_action('export_wp', 'my_export_wp');


Adding the code to the theme functions.php file worked like a charm. All of Loren's posts from 2003 to 2010 are now sitting in a nice XML file.
View the Post on the Blog
 
Top