How can I export WordPress posts’ attachments?
In case if your images are lying in some other folder of your previous wordpress install, then did you try copying that entire folder in your current install?
In case if your images are lying in some other folder of your previous wordpress install, then did you try copying that entire folder in your current install?
The data for Currently Active Menus is not included in the exports (by default). This is because there is no guarantee the importing site will have the same theme (or same named menus). If changing the menus was a big deal, you could export/import all the data straight out of the database. (This option is … Read more
If the url changed for your new site you’ll have to do a search and replace of the old urls in your database. Always make a backup first. See this Codex reference to do this safely: http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change
Answers: Is post_guid the image location reference? Or is the path to the image stored somewhere else? $post->guid is the record in a post which holds the URL for your attachment. Where is featured image set? featured image is saved as post meta so use update_post_meta() once you have the attachment id: update_post_meta( $post->ID, ‘_thumbnail_id’, … Read more
This is really more of a server admin question than WordPress. Error logs and php.ini file locations can vary depending on the server OS. You need to change the upload and timeout limits for php. Do that either in the main php.ini file or enable php.ini in your web directory and try: max_execution_time = 120 … Read more
This may be what you’re looking for http://wordpress.org/extend/plugins/suicide/. As a super admin you can select which sites you would like to remove the content from within your multisite setup.
Yes you can by programatically adding the attachment. $upl = wp_upload_dir(); $target = $upl[‘basedir’] . ‘/YOUR_CUSTOM_FOLDERS/YOUR_FILE’; $filetype = wp_check_filetype($target); $attachment = array( ‘post_mime_type’ => $filetype[‘type’], ‘post_title’ => $YOUR_FILE_TITLE, ‘post_content’ => ”, ‘post_status’ => ‘inherit’ ); wp_insert_attachment( $attachment, $target, $POST_ID_TO_ATTACH_TO ); This will tell WordPress that there is an attachment at $target and you can optionally … Read more
Ensure that the NEW site is already running the same Theme, and all appropriate Plugins. Generate your export file from your OLD site, ensuring that you export “all content”. Import the file into the NEW site, ensuring that you enable/check the option to download/import all attachments. (It is on the same import step during which … Read more
@import is a convenient CSS shortcut for loading a particular stylesheet (often parent themes or other dependencies), but part of the reason why it’s generally discouraged is due to – as you had mentioned – a small performance hit (stylesheets loaded with @import are not loaded in parallel). Another reason is that by loading stylesheets … Read more
If it is an older version of WP, you need to find out what version of WP generated the database, as WP upgrades the DB most times the files are upgraded and you should incrementally upgrade to also upgrade the database. Look in the wp_options table for option 711 and see what the version is; … Read more