Convert WooCommerce products into posts?

web_riches

Regular Member
Joined
Feb 9, 2010
Messages
328
Reaction score
263
So I do admit this is not very "black hat", but it is a question on the least...
I also did some searching online and didn't find anything acceptable...

I have a Blog with a bunch of WooCommerce products, I was using the affiliate Link feature for WooCommerce in them, and have the short descriptions... however, I need to restructure the blog, and doing so, I need to convert these WooCommerce products into regular posts. ideally I would like to keep the URL structure for SEO and if I can the embedded affiliate link for things such as Amazon products or other products or services.

Do you know of a product, plug-in, or way to accomplish this task?
 
Ask ChatGPT to write a script that replaces the post type of all your WooCommerce products from "product" to "post." It's only about three or four lines of code :)
 
One approach could be to export your WooCommerce product data then import it into your blog as posts using a plugin like "WP All Import". You would need to map the product fields to the post fields carefully. For the affiliate links you might need to use a search and replace plugin to ensure the links are correctly embedded within the new post content.
 
Must try using the "Post Type Switcher" plugin. It lets you change products into posts in one click.
 
Back
Top