XML importing fails

The issue seems to may be with identical post_date on both a revision and a post. As the data is transferred into the DB, the revision goes first and when the post hits it, the DB sees it as already existing and so does not transfer the actual post. First check: Post type Date I’m … Read more

Weird characters displayed when importing WordPress MySQL db

Can you try setting the DB Charset within wp-config.php? define(‘DB_CHARSET’, ‘utf8_general_ci’); define(‘DB_COLLATE’, ‘utf8_general_ci’); Have a read of this first though: https://codex.wordpress.org/Editing_wp-config.php It can cause problems to an already existing blog to add those lines into wp-config.php, so use with caution. Are you importing this through WordPress or manually through something like PhpMyAdmin? Also, are all … Read more

Importing URLs of Audio Enclosures

It’s hard to tell what you’re working with from the image, but I’ll assume newline breaks. <?php $string = “http://www.podcast.com/track.mp3 2207703 audio/mpeg”; echo “<pre>”; echo $string; // should show multiple rows To grab the first line, try preg_match: // now grab the first line if( preg_match (‘/^(.*)$/m’, $string, $matches) ){ echo $matches[0]; // first line … Read more

XML file import for attachments or featured images

I’m not aware of the way this could be done with a WXR file alone; after all attachments are posts, and if you’re importing images from elsewhere you’d need to do all the WordPress processing on them to make them into posts (from WordPress’s point of view). You may get inspired with how this plugin … Read more

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