WordPress export tool doesn’t export post-format value of custom post type?

After spending time debugging export.php, I found that we have to register post_format taxonomy for our custom post type. register_taxonomy( ‘post_format’, ‘portfolio’, array( ‘public’ => true, ‘hierarchical’ => false, ‘labels’ => array( ‘name’ => _x( ‘Format’, ‘post format’ ), ‘singular_name’ => _x( ‘Format’, ‘post format’ ), ), ‘query_var’ => true, ‘rewrite’ => $rewrite[‘post_format’], ‘show_ui’ => … Read more

Error: Failed to import tag/post

After a long day of tweaking, I found there were several problems: The whitespace in the XML matters. The importer throws errors when each item’s child elements are not in the same line. Any whitespace between them will cause an indentation error and fail that row’s import. This doesn’t seem to matter on the actual … Read more

Importing XML to WordPress, permalink problem

I figure out was I was doing wrong. There´s a tag named “post_name” in the xml. And there´s a tag named “link” So I have to set this two fields, with the adress that I need. So in the “link” fild is setup this way: <link>http://localhost/site/man-clothes/jeans-pants/ripped/rock-style</link> And the “post_name” fild I setup like this: <post_name>man-clothes/jeans-pants/ripped/rock-style</post_name> … Read more

Tags not importing when using WordPress import system

Save the xml snippet to a xml file. And after seeing the message Failed to import post tag (after importing all the posts) import this file. It will import all the tags. Here is your xml– <?xml version=”1.0″ encoding=”UTF-8″?> <rss version=”2.0″ xmlns:excerpt=”http://wordpress.org/export/1.2/excerpt/” xmlns:content=”http://purl.org/rss/1.0/modules/content/” xmlns:wfw=”http://wellformedweb.org/CommentAPI/” xmlns:dc=”http://purl.org/dc/elements/1.1/” xmlns:wp=”http://wordpress.org/export/1.2/”> <channel> <wp:wxr_version>1.2</wp:wxr_version> <wp:tag> <wp:term_id>31</wp:term_id> <wp:tag_slug><![CDATA[accounts]]></wp:tag_slug> <wp:tag_name><![CDATA[Accounts]]></wp:tag_name> </wp:tag> <wp:tag> <wp:term_id>148</wp:term_id> … Read more

Unknown collation when I import a dump from an existing site into a development database?

This issue is as a result of your server not supporting the utf8mb4_unicode_520_ci collation type. To resolve this you should convert the collation for all tables with utf8mb4_unicode_520_ci to utf8_general_ci If you’re exporting through phpmyadmin, you can: Click the “Export” tab for the database Click the “Custom” radio button Go the section titled “Format-specific options” … Read more

WP CLI not importing media files

wp import something.xml The possible problem with this solution is when the original domain is not available from the web server you are on. Try to ping the domain name from the AWS LightSail. You know for the wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xm‌l, there you have images like wpthemetestdata.files.wordpress.com/2010/08/manhattansummer.‌​jpg, but when the domain wpthemetestdata.files.wordpress.com is not available anymore the … Read more

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