How to add a timestamp to the exported WXR filename?

I don’t think you need to do that, it’s already there (if I understand the question correctly): In the WXR file we get a timestamp like: that’s generated with: <?php the_generator( ‘export’ ); ?> that calls get_the_generator() where the export case is: $gen = ‘<!– generator=”WordPress/’ . get_bloginfo_rss(‘version’) . ‘” created=”‘. date(‘Y-m-d H:i’) . ‘” … Read more

Export All Posts and Media to XML and/or Word

For anyone that is lurking, I solved my issue. I wrote a plugin that allows you to export to a html file, or just show it on screen. It basically outputs all pages using minimal CSS (just H1/H2/H3) into an HTML file, or to the screen (or emails the file to you). Another way, which … Read more

How to assign name the WordPress export.xml file

By default, the filename is defined in /wp-admin/includes/export.php: $sitename = sanitize_key( get_bloginfo( ‘name’ ) ); if ( ! empty( $sitename ) ) { $sitename .= ‘.’; } $date = gmdate( ‘Y-m-d’ ); $wp_filename = $sitename . ‘WordPress.’ . $date . ‘.xml’; And you can filter it: $filename = apply_filters( ‘export_wp_filename’, $wp_filename, $sitename, $date ); So … Read more

UTF8 Encoding problems when exporting posts

The file is likely correct, but the program that you’re viewing it in is probably interpreting it with ISO-8859-1 / latin1 encoding. The é pairing is something I have often seen when viewing a UTF-8 encoded é in latin1. Be sure that the program you are viewing the file in is set to view in … Read more

Moving wordpress site to subpage of another site

This is how I would do it: Log into “other organization” install All In One WP Migration make a copy of your site download said copy In site.com Create a directory called acquiredpages install a blank copy of WordPress log into your blank wordpress install All In One WP Migration run the migration with the … Read more

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