Export only a part of the database for migration

If you don’t mind exporting pages and posts separately, you can use the default WordPress export tool to achieve that. On the Export screen you can set the tool to export only posts. Then add a suitable date filter. After that do another export, but this time set the tool to export only pages. You … Read more

Export to csv adding html to file

I have a similar process to output all email addresses from the database into a downloadable txt file. It looks like this: $xoutput = show_subscriber_list(); $xfile = fopen(‘xsubscriber.txt’ , “w”) or die(“Unable to open file!”);; fwrite($xfile,$xoutput); fclose($xfile); $filename=”xsubscriber.txt”; // of course find the exact filename…. header(‘Pragma: public’); header(‘Expires: 0’); header(‘Cache-Control: must-revalidate, post-check=0, pre-check=0’); header(‘Cache-Control: private’, … Read more

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