12 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Pulled off some great moustache to raise money or awareness for Movember Australia
+5 more
BliccaThemes says

bump

659 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

This is the “bumpiest” thread ever :D
I already stated that I found truly difficult that someone comes up with a “one click” method to generate sample content. This is mostly because themes use different ways to store their options for pages, posts and other custom post types. I have also stated that the XML import feature is not really good, because due to security some servers don’t import properly images and other content.
Once again, let me just add that I don’t have any trouble in generating content with some PHP instructions. Just to give an idea, on my latest theme, 3 blog posts, 3 portfolio items, 3 team members, 2 slides and 10 pages are generated with a single click. This took me less than 2 hours to implement which is nothing considering that I spent hundreds of hours developing the theme.

3437 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

This is the “bumpiest” thread ever :D
I already stated that I found truly difficult that someone comes up with a “one click” method to generate sample content. This is mostly because themes use different ways to store their options for pages, posts and other custom post types. I have also stated that the XML import feature is not really good, because due to security some servers don’t import properly images and other content.
Once again, let me just add that I don’t have any trouble in generating content with some PHP instructions. Just to give an idea, on my latest theme, 3 blog posts, 3 portfolio items, 3 team members, 2 slides and 10 pages are generated with a single click. This took me less than 2 hours to implement which is nothing considering that I spent hundreds of hours developing the theme.

I don’t get why people are having such a hard time developing their own, its not really that difficult to do. Take the time developer your own system.

301 posts
  • Has been part of the Envato Community for over 1 year
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has referred 1+ members
+3 more
juarathemes says


This is the “bumpiest” thread ever :D
I already stated that I found truly difficult that someone comes up with a “one click” method to generate sample content. This is mostly because themes use different ways to store their options for pages, posts and other custom post types. I have also stated that the XML import feature is not really good, because due to security some servers don’t import properly images and other content.
Once again, let me just add that I don’t have any trouble in generating content with some PHP instructions. Just to give an idea, on my latest theme, 3 blog posts, 3 portfolio items, 3 team members, 2 slides and 10 pages are generated with a single click. This took me less than 2 hours to implement which is nothing considering that I spent hundreds of hours developing the theme.
I don’t get why people are having such a hard time developing their own, its not really that difficult to do. Take the time developer your own system.

Maybe that’s because we don’t know how to start?

1290 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+5 more
Smartik says



This is the “bumpiest” thread ever :D
I already stated that I found truly difficult that someone comes up with a “one click” method to generate sample content. This is mostly because themes use different ways to store their options for pages, posts and other custom post types. I have also stated that the XML import feature is not really good, because due to security some servers don’t import properly images and other content.
Once again, let me just add that I don’t have any trouble in generating content with some PHP instructions. Just to give an idea, on my latest theme, 3 blog posts, 3 portfolio items, 3 team members, 2 slides and 10 pages are generated with a single click. This took me less than 2 hours to implement which is nothing considering that I spent hundreds of hours developing the theme.
I don’t get why people are having such a hard time developing their own, its not really that difficult to do. Take the time developer your own system.
Maybe that’s because we don’t know how to start?

Start with DataBase. Export it and after that copy attachments from “uploads” directory and create a final zip with all this. On import replace the old links domain with the new one.

I must agree with @Pirenko, this is easy to do for a particular theme but a global tool that will work with any theme is hard and the only solution is to export/import the database.

I personally have no interest to develop a plugin for this because people don’t return back something. Not talking only about donations, most of the theme authors here don’t add at least a backlink in the item description. Too bad.

659 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

Maybe that’s because we don’t know how to start?
I have shown how to start on the second page of this thread: http://themeforest.net/forums/thread/making-a-one-click-sample-install-or-just-use-xml-importexport/121980?page=2
This is using the method I described above, but there are alternative ways to do this. Good luck!
301 posts
  • Has been part of the Envato Community for over 1 year
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has referred 1+ members
+3 more
juarathemes says

Thank you smartik and Pirenko…
That’s all make sense now :).
gonna try that…

31 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United States
WatchMeShine says

Thanks, Pirenko. Really appreciate you.

I just sent you an email message, I’d love your opinion on my theme. You have that, “I know what the bleep I’m doing” vibe. Need your wisdom.

141 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 3 years
+2 more
FranklinM2 says

I think I figured out how to import everything using a one click import system. This includes widgets, navigation menus, content and theme options the only thing left is setting those settings in Settings->Reading.

For widgets: I discovered a plugin called Widget Settings Importer/Exporter https://wordpress.org/plugins/widget-settings-importexport/

This plugin exports the widgets as a json file. And as you may know json is awesome.

For menus I use a function like this. It runs after the content has finished importing.
function set_demo_menus(){

        //Import Menus
        $top_menu = get_term_by('name', 'Top Menu', 'nav_menu');
        $main_menu = get_term_by('name', 'Main Menu', 'nav_menu');
        $footer_menu = get_term_by('name', 'Footer Menu', 'nav_menu');

        set_theme_mod( 'nav_menu_locations' , array('top-menu' => $top_menu->term_id, 'primary' => $main_menu->term_id, 'footer-menu' => $footer_menu->term_id ) );

    }

You can see the full code on github here https://github.com/FrankM1/radium-one-click-demo-install You may need to make modification on how theme options are saved because this is different for each framework.

Feel free to share, fork or whatever.

177 posts
  • Has referred 10+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+3 more
phpface says

I think I figured out how to import everything using a one click import system. This includes widgets, navigation menus, content and theme options the only thing left is setting those settings in Settings->Reading.

For widgets: I discovered a plugin called Widget Settings Importer/Exporter https://wordpress.org/plugins/widget-settings-importexport/

This plugin exports the widgets as a json file. And as you may know json is awesome.

For menus I use a function like this. It runs after the content has finished importing.
function set_demo_menus(){

        //Import Menus
        $top_menu = get_term_by('name', 'Top Menu', 'nav_menu');
        $main_menu = get_term_by('name', 'Main Menu', 'nav_menu');
        $footer_menu = get_term_by('name', 'Footer Menu', 'nav_menu');

        set_theme_mod( 'nav_menu_locations' , array('top-menu' => $top_menu->term_id, 'primary' => $main_menu->term_id, 'footer-menu' => $footer_menu->term_id ) );

    }

You can see the full code on github here https://github.com/FrankM1/radium-one-click-demo-install You may need to make modification on how theme options are saved because this is different for each framework.

Feel free to share, fork or whatever.

Thanks for sharing :), +1.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by