How to Create Export/Import Functionality for Plugin

There are two basic approaches you can take. Use the standard wordpress inport / export plugin manually through the admin. Your custom post type must have the property can_export = true (default = true) If you go this route, there are interesting options for adding extra functionality for users, Check out this tutorial on adding … Read more

Best way to import users, post and categories from an external database

Unless there is a core WordPress import filter available for your CMS ( see http://codex.wordpress.org/Importing_Content ) or a plugin for a CMS not covered by core WP ( see http://wordpress.org/extend/plugins/search.php?q=import ), or a Google search for your database schema doesn’t reveal anything, you need to roll your own importer. The best way is to write … Read more

One Click demo content installation feature in WordPress theme options panel

if you check the WordPress importer plugin it is easy to implement this feature. But if you want the direct answer , here it is First of all, we need to copy the WordPress importer plugin files to our theme directory. like this 1. themes/bootstrapguru_theme/inc/wordpress-importer.php 2. themes/bootstrapguru_theme/inc/parser.php you can find this plugin here wordpress importer … Read more

Export navigation menu

WordPress has an Import/Export tool, but it doesn’t works with nav menus only, the “All Content” option will export the menus too, but with everything else that is in your site (including posts/pages in the trash) you can try this plugin so the Menu option shows in the Export page.

WordPress Theme Options Import/Export

maybe you can write 2 functions for your options one script to write a txt file to export your options one script to import in your wordpress (add upload field in your option theme page) all of theses functions can be in your functions.php of the theme here is an example of function to write … Read more

Import posts with featured images

If you export a single post type (i.e. posts, pages, a custom post type, etc…) it will not include attached media files like featured images. That’s incredibly idiotic, to me, but your options are — Export everything from site (which will include featured images), then modify the XML file as needed before importing to the … Read more

Export all posts as individual plain txt files

Try this (you may need to bootstrap WP by loading wp-load.php, depending on where you put this code). $args = array( ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, //’posts_per_page’ => -1 //uncomment this to get all posts ); $query = new WP_Query($args); while ( $query->have_posts() ) : $query->the_post(); $f = fopen(get_the_title() . ‘.txt’, ‘w’); $content=”Title: ” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)