Ask your WordPress questions! Pay money and get answers fast! (more info)

Theme transfer, content to come along too WordPress

I am wanting to transfer my current theme http://allaweb.org (Artiste) to (Sokar) http://themes.tielabs.com/sokar/ i basically want a wp export file that will translate and put all the items into the new theme.

Answers (2)

2013-01-06

Naveen Chand answers:

You don't need any export file. Simply install the new theme and all your posts will appear in the new theme. Your content, widgets, and menus will all be intact. Go ahead and install the new theme.


Naveen Chand comments:

The data stored on your database (including custom post types with custom fields) are never lost. They remain intact. For the Custom Post types and Custom Taxonomies to appear in the user interface, you may copy the relevant functions from your existing theme's functions.php to your new theme's functions.php.

An example of such a function will be: register_post_type(). An example code is presented below. You have to search for this type in the existing theme's functions.php
register_post_type( 'acme_product',
array(
'labels' => array(
'name' => __( 'Products' ),
'singular_name' => __( 'Product' )
),
'public' => true,
'has_archive' => true,
)

Further, you may want to retain some php code (for reference purposes) that are currently residing in the existing template files pertaining to custom posts such as single-{posttype}.php or archive-{posttype}.php so as to understand the way these custom posts are retrieved on the site. In any case, you may want to have your own custom post templates in which case you will have to code them in your new templates files.

2013-01-06

Hardeep Singh answers:

I agree with Naveen partially If the widget area names remain the same.

Otherwise updates would be needed as per comparison two.
This offline process.

Thanks!


patrickclover comments:

There is custom post types with custom fields. So I don't think it's a simple process of just installing another theme.