Is there a Dotclear to WXR convertor that can be used to import comments into Disqus? - wordpress

Are there any scripts (any language) to convert comments from Dotclear (2.4.2) blog export files to the Wordpress WXR format?
This is so that I can then use that WXR format file to import comments into Disqus. I'm moving from Dotclear to a different blogging system where I'll be using Disqus for the comments. This is just for the comments, the posts are moved directly to the new blog.
It looks straightforward enough to extract the comments from the Dotclear export file, and using the post id, associate them with the URL of the original post, and then put that in a skeleton WXR file. But I don't want to re-invent the wheel, if this already exists.

Related

WooCommerce "Export products to a CSV file" function produces empty csv file

Apologies if this has been answered elsewhere, but I am unable to find a solution anywhere after hours of searching.
I am trying to export around 80 WooCommerce products to CSV using WooCommerce's built-in "Export products to a CSV file" option (as described here: https://docs.woocommerce.com/document/product-csv-importer-exporter/), but when saving using Chrome's Free Download Manager, it produces an empty file after a few hours (see screenshot below).
Alternatively, if I try and save it directly, bypassing the download manager, it produces a file called "edit.htm" which contains the html source of the "Export products to a CSV file" page of the WordPress dashboard, which is not particularly helpful.
I have tried disabling all plugins and changed the theme to WooCommerce Storefront as suggested by their support, but nothing helps.
I have encountered this issue on multiple sites and hosts, even on clean WP installs.
A simple export to csv should be straightforward, so this would seem to be a serious bug that WooCommerce is unwilling to acknowledge, or there is something I am doing wrong.
Any suggestions?
For our case, WP-Stateless plugin causes the export to render empty rows in the CSV file. So the simplest solution was to disable the plugin before exporting, and then re-enable the plugin again.
The default WooCommerce Export button works for me - whether I do all fields or just some selected fields. Problem is it gets products whether long ago sold or currently in inventory, so I'm writing my own plugin.
Hopefully you've resolved your issue by now without needing an extra plugin.

Importing posts with existing ID

I'm trying to import posts from an XML export. Some posts are missing its featured image, since the ID of the featured image already exists in the new system, hence creating the featured image is skipped.
Is there anything I can do about that?
Try importing it with a tool like WP All Import. This plugin allows you to provide action when data already exists (like updating). If you have a proper XML this import tool should do the trick.
You should never try to import data where you forcefully want the same ID, that messes things up. So allow new ID's to be created (the plugin does this for you).

WordPress: Can I batch upload lots of files (e.g. via a custom field) which will appear on my website as a list of downloadable files?

TL;DR: Can I upload hundreds of files via WordPress (vanilla or with free/premium plugins) which will appear on my website as downloadable files, or would another CMS be better suited to this task?
More info: I'm building a site to replace an old WordPress MU site. My (non-technical) client needs to be able to create a single profile page for each of their employees. Each employee page must include some or all of:
A header image
A text intro
A photo gallery
A list of links
Multiple audio embeds
Multiple video embeds
A list of ~1000 downloadable files, mostly pdf/jpg, divided into subgroups
Ideally the last point would be achieved something like this:
Client adds a custom field and must name it
Client drags any number (realistically 1-100) of files onto the field, or uploads via "add files" function
Files are saved in the backend to a folder named after the custom field
File order is editable by client
The field is output to the HTML page like this:
<h1>Custom Field Name</h1>
<ul>
<li><a>file1.pdf</a></li>
<li><a>file2.jpg</a></li>
...~100
</ul>
Employee A is totally separate from Employee B, C, etc. All employees' pages will be managed by a single user. Their files should exist separately in the backend. The paths to their files will ideally include their name, but only the filename itself needs to be printed to the page. A file system like this would be perfect:
/EmployeeFirstName-EmployeeLastName/Media/YYYY/Filename.xxx
I believe WP's default media file save directories can be customised via plugins.
I'm trying to do this in WP because it's what I've used in the past and it's what my client is familiar with. A friend recommended the Advanced Custom Fields plugin for WP, which I am looking into. I'm an experienced designer but a beginner developer. I accept my naïveté and I'm keen to learn.
Possible structures:
A single WP install with a Page per employee
A Multisite WP install with a Site per employee
Other?
After much searching I'm beginning to think WP might not be a suitable platform for long and busy pages (~80 video embeds per page, added via ACF) with this type of file management requirement. The admin page for my test page is already very slow to update and I haven't even started the file list part.
Since the key feature of this page template will be the ability to list hundreds of downloadable files, it seems logical to me to pick a CMS based on that requirement, rather than pick a familiar CMS and try to force it to do what I want.
Thanks for reading!
I have used
Download Attachments plugin which provide facilities to upload attachment as post meta from admin panel and user can download it from front end. Try it might help you.

Wordpress: Advanced Custom Fields: Exporting and Importing fields to a new wordpress install

I've created two custom field groups in a temporary wordpress install and would now like to use the export of them to import them into a new wordpress install, however it doesn't seem like there's a way.
How have others done this?
Advanced Custom Fields stores the field groups as Custom Post Types, so the XML export is compatible with the standard WordPress XML format, and can be imported using the WordPress Importer plugin.
You can also get to the install directly by visiting /wp-admin/import.php on your site (under Admin > Tools > Import) and clicking the WordPress link at the bottom. Once installed you just need to import the XML export file you created for the ACF field groups.
For importing from ACF 4 (exported to PHP) to ACF 5 Pro I used ACF-PHP-Recovery. Works like a charm.
To build on antongorodezkiy's answer:
His suggestion to use ACF-PHP-Recovery worked for me, but I had to make a couple of other edits first. My ACF 4.x PHP export used the function "register_field_group". But the ACF website references the function "acf_add_local_field_group". The property fields of both functions are almost identical -- the one major difference is that the old function used 'id' as one of its first keys, and the new function uses 'key'.
Making those changes to the PHP allowed the ACF-PHP-Recovery plugin to recognize my ACF data and import it.
By the way, the generated PHP goes into your functions.php file. Once you've used the plugin to upload the data, remove the PHP from functions.php.

How to import 1500 products into WP eCommerce with Custom Meta information?

I have a CSV file of products I need to import with the Custom Meta information but from what I have seen, the CSV examples only covers a few of the product details to import and not the Custom Meta information.
I have looked into a plugin I found by Visser Labs and although it looks like the thing I need, it is a super expensive and I am hoping there is someone who has done something similar for far cheaper?
Otherwise, if I have overlooked something and there is a simpler method, please let me know?
Many thanks!
This LINK describes the accepted import categories, as well as a Wordpress Plugin to import a CSV for eCommerce.
Best part of this page is the clarification of import fields acceptable by WP eCommerce.
As for importing custom meta:
meta_* - Custom meta data can also be included by creating a column
that has meta_ prefixed to it. For example if you want to have a
custom meta field called brand associated to your product you can
create a column called meta_Brand.

Resources