Importador de WordPress

Descripción

El importador de WordPress importará el siguiente contenido del archivo de exportación de WordPress

  • Entradas, páginas y otros tipo personalizado de datos (CPT)
  • Comments and comment meta
  • Campos personalizados y post metas
  • Categories, tags and terms from custom taxonomies and term meta
  • Autores

For further information and instructions please see the documention on Importing Content.

Filtros

El importador tiene un par de filtros para permitirte activar/bloquear completamente ciertas acciones

  • import_allow_create_users: devuelve falso si solo quieres permitir el mapeo a usuarios existentes
  • import_allow_fetch_attachments: devuelve falso si no deseas permitir el importar y descargar adjuntos
  • import_attachment_size_limit: devuelve un valor entero en bytes para el tamaño máximo del archivo a guardar (por defecto es 0, que es ilimitado)

Existen también algunas acciones disponibles para enganchar:

  • import_start: ocurre después de que el archivo de exportación ha sido cargado y que los ajustes de importación del autor han sido escogidos
  • import_end: se llama después de la última salida del importador

Instalación

El método más rápido para instalar el importador es:

  1. Visita Herramientas -> Importar del escritorio de WordPress
  2. Haz clic en el enlace “WordPress” en la lista de los importadores
  3. Haz clic en “Instalar ahora”
  4. Finalmente, haz clic en “Activar plugin & Importar”

Si prefieres hacer las cosas manualmente entonces sigue estas instrucciones:

  1. Sube la carpeta wordpress-importer al directorio /wp-content/plugins/
  2. Activa el plugin a través del menú de ‘Plugins” en WordPress
  3. Ve a Herramientas -> Importar, haz clic en WordPress

FAQ

¡Ayuda! Me están saliendo errores de memoria una pantalla blanca.

Si tu archivo exportado es muy grande, el script importado puede ejecutarse en tu servidor con el límite de memoria configurado para PHP.

Un mensaje como “Error fatal, el tamaño de memoria autorizado de 8388608 bytes ha sido agotado” indica que el script no puede importar tu archivo XML de manera exitosa bajo el actual límite de memoria PHP. Si tienes acceso al archivo php.ini, tu puedes incrementar el límite manualmente; si no tienes (tu instalación WordPress está hospedada en un servidor compartido, por ejemplo), tal vez tengas que partir tu archivo XML de exportación en varias pequeñas piezas y correr el script de importación de uno en uno.

Para los usuarios de alojamiento compartido, la mejor alternativa puede ser consultar al servicio de soporte de la empresa de alojamiento cuál es el método más seguro para hacer realizar la importación. Es probable que la empresa de alojamiento pueda subir temporalmente el límite de memoria y/o realizar ella misma el proceso directamente desde su sistema.

Support Article: Importing Content

Opiniones

4 de Noviembre de 2023
I remember the time when this plugin was partially useless, but today I managed to export all of my posts and images easily and import them to my new installation. So, there was no need for a 3rd party plugin.This is useful for cluttered databases: when you transfer all your posts and images to new installation, then your database will have nothing but posts and images. Light and fast.Bye
6 de Octubre de 2023 1 reply
Good for the main use cases: restore from backup, and moving posts between blogs. Unfortunately the image import doesn't seem to work (WordPress 6.3 with plugin 0.8.1), which makes it a pain to clean up image-heavy posts. One thing I'd like to do with this that I can't is to import another copy of a cross-post and merge the comment threads. As it is, the best I can do is import the duplicate copy and then use another plugin (or dig into the database) to move the comments around.
10 de Agosto de 2023
Needed to copy the content of the old website to the one which is developed from scratch - and it worked!
21 de Julio de 2023 1 reply
I've used this just a few times in the past 18 months. And one time it was an incredible, urgent need as there were no server backups available from a web host (not with them anymore). Another time I made a mistake and deleted some comments. Anyway, this is only the 2nd review for this plugin within the past year or so. And I see a lot of negative scored posts. After reading them, I noticed a number of the 1-star reviews seemed to be user error. I've been in IT Management, development, and consulting for 4 decades. I use very little custom coding on my sites because, in my past experience, there are far less issues during updates and upgrades. So, with that said, I have also noticed there are a lot of optional settings to decide when using this tool. And many are preselected that I unselect. I recommend taking your time when using this tool and defining your own settings every time you use it. I use about 20 plugins and there's no interference with any of them. But, I am careful about which plugins I retain. Also, I use this plugin just create backups or to perform restores from them. Then, I uninstall it until I need it again. For example, I'm here today because I'm getting ready to use it again as I'm about to make some major category changes. It will be very handy to use this tool to perform backups (and any needed restores) instead of using a site restore that will reset recent work on posts or pages. I use this as an additional backup and as an archive for all my sites. It's always saved me when I needed it and I've found it to be reliable and solid. It's been absolutely perfect for me when performing work on tags and categories so I don't have to use a site restore.
13 de Febrero de 2023
I love this plugin. Super easy to use and works as expected for a "free" plugin. Not sure why there are so many bad reviews as this plugin is super helpful.My guess/assumption on the bad reviews is that people are having issues with their webhost and that is reflected in their experience/reviews with this plugin???
Leer los 309 comentarios

Colaboradores & Desarrolladores

“Importador de WordPress” es software de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

“Importador de WordPress” ha sido traducido en 59 idiomas. Gracias a los traductores por sus contribuciones.

Traduce & #8220;Importador de WordPress” a tu idioma.

¿interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN , o suscríbete al log de desarrollo por RSS .

Historial de cambios

0.8.2

  • Update compatibility tested-up-to to WordPress 6.4.2.
  • Update doc URL references.
  • Adjust workflow triggers.

0.8.1

  • Update compatibility tested-up-to to WordPress 6.2.
  • Update paths to build status badges.

0.8

  • Update minimum WordPress requirement to 5.2.
  • Update minimum PHP requirement to 5.6.
  • Update compatibility tested-up-to to WordPress 6.1.
  • PHP 8.0, 8.1, and 8.2 compatibility fixes.
  • Fix a bug causing blank lines in content to be ignored when using the Regex Parser.
  • Fix a bug resulting in a PHP fatal error when IMPORT_DEBUG is enabled and a category creation error occurs.
  • Improved Unit testing & automated testing.

0.7

  • Update minimum WordPress requirement to 3.7 and ensure compatibility with PHP 7.4.
  • Fix bug that caused not importing term meta.
  • Fix bug that caused slashes to be stripped from imported meta data.
  • Fix bug that prevented import of serialized meta data.
  • Fix file size check after download of remote files with HTTP compression enabled.
  • Improve accessibility of form fields by adding missing labels.
  • Improve imports for remote file URLs without name and/or extension.
  • Add support for wp:base_blog_url field to allow importing multiple files with WP-CLI.
  • Add support for term meta parsing when using the regular expressions or XML parser.
  • Developers: All PHP classes have been moved into their own files.
  • Developers: Allow to change IMPORT_DEBUG via wp-config.php and change default value to the value of WP_DEBUG.

0.6.4

  • Mejora de la compatibilidad con PHP7.
  • Corregido un error que provocaba que las barras diagonales se despojaban de los comentarios importados.
  • Corrección para varios avisos de desuso incluyendo wp_get_http() y screen_icon().
  • Corrección para importar archivos de exportación con metadatos de término multilínea.

0.6.3

  • Se agregó compatibilidad para metadatos de término de importación.
  • Corregido un error que provocaba que las barras diagonales se despojaban del contenido importado.
  • Corregido bug que provocaba que los caracteres fueran despojados dentro de CDATA en algunos casos.
  • Arregla avisos de PHP.

0.6.2

0.6

  • Soporte para WXR 1.2 y secciones de CDATA múltiples.
  • Las entradas no están duplicadas si su post_type es diferente

0.5.2

  • Revisa dos veces si el archivo de exportación que subiste existe antes de procesarlo. Esto previene mensajes de error incorrecto cuando un archivo exportado es subido al servidor con problemas de permisos y cuando utilizas WordPress 3.3 o 3.3.1.

0.5

  • Importar meta de comentarios (requiere exportarlo desde WordPress 3.2)
  • Errores menores y mejoras

0.4

  • Mapea el user_id del comentario donde sea posible
  • Importar adjuntos desde wp:attachment_url
  • Sube los archivos adjuntos al directorio correcto.
  • Identifica correctamente las URLs de las imágenes redimensionadas

0.3

  • Utiliza un parseador de XML si es posible
  • Soporta importación correcta de menús de navegación
  • … y mucho más, ve Trac ticket #15197

0.1

  • Versión inicial