WordPress Importer

Beskrivning

WordPress importeraren kommer importera följande innehåll från en WordPress exportfil:

  • Inlägg, sidor och andra anpassade inläggstyper
  • Kommentarer och kommentars-meta
  • Egna fält och inläggsmeta
  • Kategorierar, etiketter och termer från anpassade taxonomier samt term-meta
  • Skapare

Mer information och instruktioner finns i dokumentationen om import av innehåll (engelska).

Filter

Importeraren har ett antal filter som tillåter dig att fullständigt aktivera/blockera specifika funktioner:

  • import_allow_create_users: returnera false om du endast vill tillåta mappning mot befintliga användare
  • import_allow_fetch_attachments: returneras som felaktig om du inte önskar tillåta importering och nedladdning av bilagor
  • import_attachment_size_limit: returnerar ett heltal för den maximala filstorleken i byte som sparas (standard är 0, som är obegränsad)

Det finns också ett antal actions tillgängliga för att koppla in i:

  • import_start: inträffar efter det att exportfilen har blivit uppladdad och författar-importinställningar har blivit valda.
  • import_end: anropas efter sista utdatan från importören

Installation

Den snabbaste metoden för att installera importeraren är:

  1. Besök Verktyg -> Importera i WordPress panelen
  2. Klicka på WordPress länken i listan över system
  3. Klicka ”Installera nu”
  4. Slutligen klickar du på ”Aktivera tillägg & kör importeraren”

Om du föredrar att göra saker manuellt, följ då dessa instruktioner:

  1. Ladda upp wordpress-importer mappen till /wp-content/plugins/ katalogen
  2. Aktivera tillägget genom ’Tillägg’ menyn i WordPress
  3. Gå till Verktyg -> Importera-vyn, klicka på WordPress

Vanliga frågor

Hjälp! Jag får felmeddelande om slut på minne eller blank skärm.

Om din exporterade fil är mycket stor kan importskriptet nå ditt webbhotells konfigurerade minnesgräns för PHP.

Ett meddelande som ”Allvarligt fel: Tillåten minnestorlek på 8388608 byte förbrukat” indikerar att skriptet inte lyckas importera XML-filen med nuvarande PHP-minnesgräns. Om du har tillgång till en php.ini fil, kan du manuellt höja gränsen; om inte (till exempel om din WordPress installation finns på en delad server), kan du behöva bryta din exporterade XML-filen i flera mindre bitar och kör importskriptet en i taget.

För dem med delat webbhotell kan det bästa alternativet vara att konsultera sitt webbhotells support för att bestämma den bästa metoden för att köra importen. Ett webbhotell kan vara villiga att tillfälligt lyfta minnesbegränsningar och / eller köra importen direkt från deras håll.

Support-artikel: Att importera innehåll (engelska)

Recensioner

4 november 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 oktober 2023 1 svar
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 augusti 2023
Needed to copy the content of the old website to the one which is developed from scratch - and it worked!
21 juli 2023 1 svar
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 februari 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???
Läs alla 309 betyg

Bidragsgivare och utvecklare

”WordPress Importer” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer

”WordPress Importer” har översatts till 59 språk. Tack till översättarna för deras bidrag.

Översätt ”WordPress Importer” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.

Ändringslogg

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

  • Uppdaterade kravet på lägsta WordPress-version till 3.7 och säkerställ kompatibilitet med PHP 7.4.
  • Rättat ett fel som gjorde att term-meta inte importerades.
  • Rättade ett fel som gjorde att snedstreck (/) togs bort vid import av meta-data.
  • Rättat ett fel som förhindrade import av serialiserade meta-data.
  • Rättat kontroll av filstorlek efter nedladdning av fjärrfiler när HTTP-komprimering är aktiv.
  • Förbättrat tillgängligheten av formulärfält genom att saknade etiketter lagts in.
  • Förbättrat import för fjärr-URL:er som saknar namn och/eller filändelse.
  • Lagt till stöd för fältet wp:base_blog_url för att möjliggöra import av flera filer via WP-CLI.
  • Lagt till stöd för tolkning av term-meta vid användning av reguljära uttruck eller XML-tolk.
  • Utvecklare: Alla PHP-klasser har lagts i egna filer.
  • Utvecklare: Gjort det möjligt att ändra IMPORT_DEBUG via wp-config.php och ändrat standardvärdet till samma värde som hos WP_DEBUG.

0.6.4

  • Förbättra PHP7-kompatibilitet.
  • Rättat ett fel som gjorde att snedstreck raderades i importerade kommentarer.
  • Rättelse avseende olika notiser om föråldrade funktioner, inklusive wp_get_http() och screen_icon().
  • Rättelse för import av exportfiler med metadatatermer som sträcker sig över flera rader.

0.6.3

  • Lägg till support för att importera term-metadata.
  • Fixat bugg som orsakade att snedstreck ”/” försvann från importerat innehåll.
  • Fixat bugg som i vissa fall orsakade att tecken förlorade sin formatering innanför CDATA.
  • Fixat PHP-notiser.

0.6.2

0.6

  • Stöd för WXR 1.2 och multipla CDATA sektioner
  • Inlägg är inte dubletter om deras post_type är olika

0.5.2

  • Dubbelkolla att den uppladdade exportfilen existerar innan den börjar bearbetas. Detta förebygger inkorrekta felmeddelande när en exportfil laddas upp till en server utan att man har fullständiga rättigheter om WordPress 3.3 eller 3.3.1 används.

0.5

  • Importera kommentarsmeta (kräver export från WordPress 3.2)
  • Mindre buggfixar och förbättringar

0.4

  • Mappa kommentar user_id när det är möjligt
  • Importera bilagor från wp:attachment_url
  • Ladda upp bilagor till rätt katalog
  • Mappa om storleksändrade bilders URL:er korrekt

0.3

  • Använd en XML parser om möjligt
  • Rätt importstöd för navigationsmenyer
  • … och så mycket mer, se Trac-ärende #15197

0.1

  • Första utgåvan