WordPress (+WPMU) Import/Export ALL settings?

Answering another Question, I pointed to this tutorial: Creating a Simple Backup/Restore Settings Feature Lee Pham on Jun 22nd 2012 In this tutorial, I’m going to show you how to create a simple backup/restore feature for your WordPress blog. With this feature, you can backup all options to another place, that you can restore them … Read more

Creating a one click demo importer

I believe that if you are not going to do a massive sql insert (which I think is likely just as efficient) that you need to go ahead and utilize the plugin api and at the time of the button being pressed, create them. I think it’s pretty clear your choice is either to create … Read more

Importing large data from blogger

Firstly, your upload_max_filesize is much smaller than your post_max_filesize which means that even though you can POST 100MB of data, PHP will only accept files in that POST data which are 8MB or less. Try increasing this limit. Secondly, are you sure that your php.ini is being loaded by your host? Not all hosts allow … Read more

register_post_status invisible but searchable

You can filter your admin query with pre_get_posts filter. function wpse_306361_admin_search($query) { if(is_admin() && $query->is_main_query() && $query->is_search()) { $query->set(‘post_status’, array(‘publish’, ‘draft’, ‘what-you-want’, ‘your_custom_status’)); } return query; } add_action(‘pre_get_posts’, ‘wpse_306361_admin_search’, 10, 1); It will check if query is in admin, if it’s main query and if it’s a search query. If it’s only for a post_type, … Read more

Export a blog(not mine) as a PDF document

This kind of content scraping is frowned on. You’re trying to grab someone else’s content and put it into a transferable format over which they have no control. Yes, your intentions are sincere, but don’t be surprised if several people are hesitant to help. You do have some options, though. Contact the blog author This … Read more

Is it possible to import a wordpress backup from a single site in to a multi-site configuration?

I imported/exported between a single wordpress blog and a multisite wordpress without problems, many times. Personally on a multi-site wordpress I have a parent generic theme and each website has it’s own child theme with as few files as possible, mostly only html/css for custom post types. Security issues or big complicated options are most … Read more

How do i export the HTML from text widgets?

The data in the options table is stored as serialized arrays. Use get_option() to get the data and unserialize them. array_walk( get_option( ‘widget_text’ ), function( $d ){ if ( ! empty( $d[‘title’] ) ) { printf( ‘<p>Title: %s<br>Text: %s</p>’, $d[‘title’], htmlentities( $d[‘text’] ) ); } } ); If you need a complete plugin, use this. … Read more

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