Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Så här duplicerar du en page eller ett post i WordPress med ett enskilt inlägg

Du vill uppdatera ditt innehåll, men du är rädd för att förstöra det som redan fungerar. Vi känner till detta problem alltför väl eftersom WordPress inte tillåter dig att redigera en live-sida utan att påverka den.

Det var då vi upptäckte ett enkelt knep: att duplicera sidor och inlägg. Du får en exakt kopia att arbeta med, och din live-sida förblir orörd. När det nya innehållet är färdigt kan du bara uppdatera det. Det är vad vi gör här på WPBeginner för att enkelt uppdatera våra guider.

Om du vill lära dig hur du gör detta, fortsätt läsa. Vi går igenom hur du duplicerar en WordPress-sida eller ett inlägg med bara ett klick.

Easily duplicate a WordPress post or page

När ska man klona eller duplicera en sida eller ett inlägg i WordPress?

Ibland kan du snabbt behöva kopiera en WordPress-sida eller ett WordPress-inlägg med alla dess inställningar. Du kanske t.ex. vill återanvända designen från en framgångsrik landningssida eller utöka befintligt innehåll till ett helt nytt inlägg.

Ett alternativ är att manuellt CTRL + C och CTRL + V sidans innehåll till ett nytt utkast. Detta kommer dock inte att kopiera den utvalda bilden, inläggsinställningarna och andra viktiga metadata för din anpassade sida. Detta innebär att du måste lägga till denna information manuellt, vilket tar tid och ansträngning.

Med detta sagt, låt oss se hur du kan duplicera WordPress pages eller posts med ett enskilt inlägg.

Video Tutorial

Subscribe to WPBeginner

Om du föredrar skriftliga instruktioner är det bara att fortsätta läsa.

Hur man duplicerar ett WordPress post eller page med ett plugin (Step-by-Step)

Det bästa sättet att kopiera en sida eller ett inlägg och alla dess inställningar är att använda Yoast Duplicate Post. Med detta plugin kan du kopiera sidors eller inläggs innehåll och inställningar till nya utkast.

Först måste du installera och aktivera pluginet. Om du behöver hjälp kan du vänligen läsa vår guide om hur du installerar ett plugin för WordPress.

Efter aktivering, gå till Posts ” All Posts eller Pages ” All Pages, beroende på vilket content du vill duplicera från din WordPress website.

Här håller du bara hovern över den ursprungliga page eller post som du vill kopiera och väljer antingen ”Clone”, ”New Draft” eller ”Rewrite & Republish”.

The Duplicate Post menu options below a blog post in the WordPress admin

”Clone” duplicerar den befintliga page eller post, men öppnar den inte i WordPress content editor.

Under tiden duplicerar ”New Draft” posten och öppnar kopian i content editor så att du kan börja arbeta med det direkt.

Slutligen duplicerar ”Rewrite & Republish” posten och öppnar kopian i content editor. När du sedan klickar på ”Publicera” i Gutenberg Editor, WordPress kommer att ersätta den ursprungliga posten med den nyligen uppdaterade versionen.

Du kan duplicera pages och posts från din WordPress site på en gång med hjälp av funktionen bulk edit.

Kontrollera bara boxen bredvid varje page eller post du vill kopiera och öppna sedan dropdown-menyn som visar ”Bulk Actions” som standard.

Bulk duplicating pages and posts in WordPress

I dropdown-menyn väljer du antingen ”Clone” eller ”Rewrite & Republish”.

Efter det är det bara att clicka på ”Tillämpa”.

Cloning multiple WordPress pages and posts

Hur man anpassar inställningarna för Duplicate Post Plugin

Pluginet Yoast Duplicate Post fungerar direkt och stöder inlägg och sidor som standard. Du kan dock konfigurera det för att duplicera anpassade inläggstyper eller ändra de element som det kopierar när du skapar en duplikat.

För att konfigurera plugin-inställningarna, gå till Settings ” Duplicate Post.

Duplicate post settings

Du kommer nu att se allt innehåll som Yoast Duplicate Post kan kopiera, till exempel titel, excerpt och attachments. Markera och avmarkera bara boxarna, beroende på vilken page och post du vill kopiera.

En sak som vi föreslår att du gör är att lägga till ett titelprefix och/eller suffix till dina duplicerade utkast. På så sätt är det lättare att identifiera vilket som är originalet och vilket som är kopian. Det prefix eller suffix som du anger kommer att tillämpas på de inlägg eller sidor som du duplicerade med hjälp av alternativet ”Nytt utkast”.

Inserting the title prefix and suffix for the duplicated copies

Välj sedan tabben ”Behörigheter”.

Som standard kan administratörer och Editors duplicera posts.

Du kan kontrollera och avmarkera dessa boxar beroende på vilka roller hos användarna som behöver duplicera posts. Om du till exempel hanterar en WordPress-blogg med flera författare kan författarna behöva funktionen klona page eller inlägg.

Duplicate Post permissions

Om du använder custom post types, kommer dessa att visas bredvid ”Aktivera för dessa post types”. Kontrollera bara boxen bredvid varje custom post type som du vill kopiera.

Om du använder WooCommerce för din ecommerce site, då kommer du också att ha alternativet att duplicera WooCommerce ”Orders” och ”Coupons”.

Cloning WooCommerce products and coupons

Slutligen klickar du på tabben ”Display” och väljer var du vill visa de duplicerade links på din WordPress blogg.

Som standard lägger pluginet till länkarna ”Nytt utkast”, ”Klona” och ”Skriv om och publicera på nytt” till din WordPress-panel. Men du kan inaktivera vissa alternativ om de gör saker och ting mer förvirrande för dig.

Configuring the page and post duplication plugin

Du kan också helt enkelt markera eller avmarkera rutorna i avsnittet ”Visa länkar i”.

Detta för att lägga till eller ta bort dessa länkar från inläggslistan, redigeringsskärmen (blockredigerare) med mera.

Choosing where the duplicate post settings are displayed in WordPress

Förutom att lägga till dupliceringsinställningarna på skärmen för inläggslistan och i bulkåtgärder rekommenderar vi att du aktiverar dem i blockredigeraren. På så sätt kan du och dina författare enkelt duplicera ett inlägg utan att behöva lämna redigeringsskärmen.

Så här ser inställningarna ut i blockredigeraren:

Duplicating a post in the block editor

Om du skrollar nedåt kan du konfigurera inställningarna för det ursprungliga inlägget.

Här föreslår vi att du aktiverar inställningarna ”I en metabox i redigeringsfönstret” och ”I en kolumn i inläggslistan”. Båda låter dig ta bort referensen till det ursprungliga objektet via redigeringsskärmen och snabbredigeringsinställningarna på sidan med inläggslistan.

När du är nöjd med hur pluginet är inställt klickar du på knappen ”Save changes” för att store dina settings.

Om du vill ha fler tips och tricks för att hantera dina inlägg och sidor kan du kolla in dessa guider:

Vi hoppas att den här artikeln hjälpte dig att lära dig hur du enkelt duplicerar en WordPress-sida eller ett inlägg. Du kanske också vill se vår ultimata lista över WordPress-handledning för anpassade inläggstyper och våra expertval av de bästa relaterade inlägg-pluginsen för WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

43 kommentarerLämna ett svar

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Dayo Olobayo says

    I’ve been struggling with manually copying and pasting content from one page to another and it’s always a pain to remember to transfer over all the metadata too. This Duplicate Post plugin sounds like a real time-saver. I can’t wait to try out it.

  3. John Rowe says

    It seems that this or a similar plugin used to also allow for the migration of a post or page to another website however I don’t see plugins that migrate only pages or posts, they all seem to promote the migration of whole websites (Not what I want.) What am I missing?

    • WPBeginner Support says

      If you only want to move posts or pages to a new site, you should be able to use the default exporter under Tools>Export and then use the WordPress importer on the site you want the content on under Tools>Import.

      Administratör

  4. Jiří Vaněk says

    Thank you for the guide. Thanks to it, I can give myself one page as a template for other articles and then duplicate other content from it. Cool.

  5. Muhammad Hammad says

    I only want to copy the design layout of the page and change the content. Is that possible with this plugin? Please advise.

  6. Ashlee says

    How do you copy an entire WordPress website?

    I have an existing website and am wanting to create a another that’ll look like the existing site but have different content.

  7. Dan says

    Hope you can help, is there a way to have the clone/copy page auto update content when changed on the original page? For example, I have removed an image from the original page but it still appears on the copy page but I’d like that to copy page to remain an exact replica. Thanks.

  8. Dean says

    Assuming I use the clone option, will allow me to edit those elements that I left unchecked in the copy section? Specifically I’m interested in being able to edit the extract.

  9. Linda says

    Sounds wonderful. Can I use it to clone a page from my stage site to our live site? I am sure hoping so!

    Thank you for your help,

    Linda

    • WPBeginner Support says

      For that, you would want to use the export tool under Tools>Export and then you should be able to specify a single post

      Administratör

      • Linda says

        Thanks, Support. Appreciate your reply (so quickly, too!) and suggestion. A follow up question: to do the cloning, should I have the plugin installed on both stage and live sites? Hope this isn’t a dumb question!

        • WPBeginner Support says

          If you are moving the content from a staging site you wouldn’t need to worry about using the plugin from this article. This plugin is for creating a duplicate post/page on the same site.

        • Linda says

          Just to tell support that I now understand how to get my content moved to the live site. Apologies for getting confused about your advice to use ’export’ not this plugin. Thanks for your help … and your patience!!

  10. Martha M. says

    This post was very helpful and with the great video included, I was able to duplicate the page that I needed to add info to.

    Now, I need to make that duplicate page the main page and do not know how to do that.

    I tried changing the name, but it hyphenated the ending of the URL and the whole page is now gone from the website. I also messaged you on your FB page.

  11. Robin says

    Thank you for this post–It was just what I needed! I went from I wonder how I can….to duplicating a post in a matter of minutes!

  12. Paul says

    Great Thanks for your work on this. It helpt me great. I,m a beginner with wordpress and try to figure it al out I,m trying to work whit Elementor also great but this whas missing.

  13. Joe says

    Once the duplicate is edited, how do you then replace the original that is live?
    It seems like it would be a lot of steps.
    – Rename the duplicate to match the original.
    – go into the customize settings
    – go into menu
    – create a new menu item, pointing it to the new edited version.
    – delete the menu item pointing to the original version.
    etc…
    Is that about right?
    Is there a simpler way?

  14. Trish Mears says

    Thanks for the info. What I want to be able to do is rename the Duplicate/Clone page, so it is found in Searches (and at the bottom on my website). Can you give me some guidance please.

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.