433 posts Keep Walking
  • Has been part of the Envato Community for over 3 years
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has collected 100+ items on Envato Market
+2 more
UXbarn says

I use a modified version of the importer plugin and changed the class name so it doesn’t conflict. You can also make it look almost exactly like the demo by using use add_option() in the importer to import data into your options panel such as social icons, fonts, colours, settings and other things that the importer wouldn’t usually do.

You can also use set_theme_mod() in the importer so it also sets the menu location, something the default importer doesn’t do.

I might post an example if you guys are interested.

EDIT: Also 1Click demo installers can drastically cut down your support tickets. It is definitely something to look into.

+1 too. Really interested. :)

186 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
Artillegence says

Hey guys I am working on a new version of my 1 click installer .. I will try to make it as a plugin and add on git for everyone ;)

1736 posts Multimedia Artistry
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Contributed a free file of the month
  • Won a Most Wanted contest
+4 more
dnp_theme says

I am in heaven :)

639 posts Fuel Your Web
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a competition
  • Had an item featured on Envato Market
  • Has been part of the Envato Community for over 7 years
+5 more
Pirenko says

Wordpress allows us to enter posts, pages, custom post types and other into the database so that is basically what I do with some PHP instructions. We can even add images to the media library and connect them to posts using their ID.
As far as I know this is better than XML import, because it works everywhere.

186 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
Artillegence says

Wordpress allows us to enter posts, pages, custom post types and other into the database so that is basically what I do with some PHP instructions. We can even add images to the media library and connect them to posts using their ID.
As far as I know this is better than XML import, because it works everywhere.
xml import is best for importing pages and posts, there are problems when you try to insert using database options, when you save sql dump in a file , if there are extra characters present it won’t work and manipulating core tables is not recommended ;) . Best way is to export as encoded text even serialized string wont work if there is a new line.
187 posts
  • Has been part of the Envato Community for over 2 years
  • Has sold $1+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ThemeBuddies says

I am interested also in a tut or plugin for a one click install!

639 posts Fuel Your Web
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a competition
  • Had an item featured on Envato Market
  • Has been part of the Envato Community for over 7 years
+5 more
Pirenko says

xml import is best for importing pages and posts, there are problems when you try to insert using database options, when you save sql dump in a file , if there are extra characters present it won’t work and manipulating core tables is not recommended ;) . Best way is to export as encoded text even serialized string wont work if there is a new line.
Nobody spoke about using SQL dump or SQL instructions… I think that it is not even allowed as you can see here: http://support.envato.com/index.php?/Knowledgebase/Article/View/472/85/wordpress-theme-submission-requirements . At a certain point you have this rule: The database shouldn’t be accessed or modified directly. If there is a defined function that can get the data you need, that must be used instead. Use $wpdb and its methods to interface with the database instead of rolling your own.

So, as an example, here’s how I add a page:

$new_page_title = 'About Us';
$new_page_content = 'This is the page content';
$new_page = array(
'post_type' => 'page',
'post_title' => $new_page_title,
'post_content' => $new_page_content,
'post_status' => 'publish'
);
$new_page_id = wp_insert_post($new_page);

Pretty simple, huh?
186 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
Artillegence says


xml import is best for importing pages and posts, there are problems when you try to insert using database options, when you save sql dump in a file , if there are extra characters present it won’t work and manipulating core tables is not recommended ;) . Best way is to export as encoded text even serialized string wont work if there is a new line.
Nobody spoke about using SQL dump or SQL instructions… I think that it is not even allowed as you can see here: http://support.envato.com/index.php?/Knowledgebase/Article/View/472/85/wordpress-theme-submission-requirements . At a certain point you have this rule: The database shouldn’t be accessed or modified directly. If there is a defined function that can get the data you need, that must be used instead. Use $wpdb and its methods to interface with the database instead of rolling your own.

So, as an example, here’s how I add a page:

$new_page_title = 'About Us';
$new_page_content = 'This is the page content';
$new_page = array(
'post_type' => 'page',
'post_title' => $new_page_title,
'post_content' => $new_page_content,
'post_status' => 'publish'
);
$new_page_id = wp_insert_post($new_page);

Pretty simple, huh?

yeah I use that too for my express installer .. but its not usable for replicating demo as it … just my opinion :)

1736 posts Multimedia Artistry
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Contributed a free file of the month
  • Won a Most Wanted contest
+4 more
dnp_theme says

yeah I use that too for my express installer .. but its not usable for replicating demo as it … just my opinion :)

Show us some code :)

122 posts WordPress Wizard
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
+5 more
CODE9RS says

I’ll write an article.

I was able to create in a new version of our framework (to be released yet) a installer that works with AJAX and is able to:

- Import posts/pages/custom posts (with the default XML Import class from WP, so no news here) - Define the menus locations automatically - Import all widgets to the correct sidebars - Define the demo’s options in theme options panel

I don’t know if is what you guys are looking for, so let me know and I can try help :)

Matthew Schultz – Dev

by
by
by
by
by
by