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

Hur man delar upp WordPress posts i flera pages (sidonumrering av post)

Långa WordPress inlägg kan vara svåra att läsa. Hur delar du detaljerat innehåll utan att förlora dina läsares intresse?

Svaret är sidonumrering av inlägg, vilket innebär att man delar upp ett långt inlägg i flera kortare sidor. Vi har använt den här metoden för att dela upp stora przewodniker och långa poradnikar i några av våra bloggprojekt. Varje gång märkte vi att läsarna engagerade sig mer i innehållet.

I den här przewodniken visar vi dig hur du delar upp dina inlägg i WordPress på flera sidor. Vi går igenom enkla metoder, med och utan tillägg.

How to Split WordPress Posts

Varför dela upp WordPress Posts på flera pages?

Om du har WordPress blogginlägg eller guider som är långa, kan du genom att ställa in WordPress sidonumrering förbättra läsbarheten av ditt content.

Det hjälper att dela upp ett långt post i olika sektioner och dela upp dem på flera pages. På så sätt kan besökarna enkelt smälta ditt content och läsa den section de är intresserade av.

En annan fördel med att dela upp WordPress inlägg är att det kan öka din användares engagemang. När användare navigerar genom sidonumrerat innehåll bidrar varje sida de visar till ökade sidvisningar, vilket kan påverka webbplatsens övergripande mätvärden positivt.

Med detta sagt, låt oss ta en titt på hur man delar upp WordPress posts i flera pages. Vi kommer att täcka hur du delar upp dina WordPress-poster i flera pages utan ett plugin och med hjälp av ett WordPress-plugin:

Metod 1: Dela upp ett enskilt inlägg i flera sidor utan ett plugin

Det enklaste sättet att konfigurera sidonumrering av inlägg är att använda blocket ”Sidbrytning” i din WordPress-blockredigerare. Du behöver inte ett tillägg till WordPress för att dela upp dina artiklar i flera sidor.

Först måste du editera eller lägga till en new post på din WordPress website med hjälp av Gutenberg block editor.

Efter det klickar du på knappen ”+” där du vill dela upp ditt content och add to ett Page Break block.

Add a page break block

You should now see a page break line in your content to indicate where the sidonumrering will appear.

Det kommer att se ut ungefär så här.

See page break in your content

Om du använder den gamla klassiska Editorn kan du använda taggen <!--nextpage--> för att dela upp ditt content.

När du skriver ett blogginlägg går du bara till ”Text” editor view för att enter taggen där du gillar att dela upp den långa artikeln.

Insert next page tag in the classic editor

Du kan också använda tangenterna Alt + Shift + P på ditt tangentbord för att infoga page breaks. Det gör du genom att gå till ”Visual”-vyn och trycka på tangentbordstangenterna där du vill lägga till en page break.

Efter det kan du previewa och publicera blogginlägget. Du kommer nu att se sidonumrering längst ner i postens content.

Post pagination example

Metod 2: Dela upp flera WordPress-poster till flera pages med hjälp av ett plugin

Ett annat sätt att dela upp långt content i olika pages är genom att använda ett plugin för sidonumrering. Fördelen med denna metod är att den automatiskt kommer att sidonumrera posts när de uppfyller vissa kriterier.

För denna metod kommer vi att använda det gratis Automatically Paginate Posts plugin, eftersom det är lätt att använda och fungerar med alla WordPress tema.

Note : Du kanskenoterar att detta plugin inte har testats med de senaste WordPress-versionerna. Vi har dock testat det själva, och det fungerar bäst av alla tillägg vi har kontrollerat.

Du kan läsa mer om om du bör använda otestade WordPress tillägg i vår artikel. Om du hittar ett tillägg som fungerar bättre än det vi erbjöd, får du gärna berätta det för oss i kommentarerna under!

Först måste du installera och aktivera pluginet Automatically Paginate Posts på din WordPress website. För mer detaljer kan du se vår tutorial om hur du installerar ett plugin för WordPress.

När pluginet är aktivt på din site, gå till Settings ” Lä sa och rulla ner till ”Automatically Paginate Posts” section.

Du kan selecta vilka post types som ska delas upp på olika pages. Därefter väljer du om du vill dela upp posts efter det totala antalet pages eller ungefärligt antal ord per page.

Automatically Paginate Posts section

Klicka sedan på knappen ”Save Changes” för att spara dina inställningar.

Tillägget kommer automatiskt att dela upp ditt content baserat på dina Settings. Du kan dock också lägga till page breaks manuellt till ditt content medan du använder pluginet.

Bonus tips: Använd AIOSEO för att optimera sidonumrering av dina post

Sidonumrering av din långa post kan definitivt förbättra upplevelsen för användaren. Med detta sagt är det viktigt att du konfigurerar posten korrekt så att den inte påverkar webbplatsens sökmotorsoptimering (search engine optimization) negativt.

Om ett blogginlägg är fördelat på flera pages på grund av sidonumrering kan Googlebot komma att indexera flera kopior av samma content. Detta kan sedan leda till duplicerade innehållsproblem.

Tack och lov kan du undvika detta genom att använda pluginet All in One SEO (AIOSEO). Detta WordPress SEO plugin gör det enkelt att göra din site SEO-vänlig, även om du inte har någon teknisk expertis.

AIOSEO infogar automatiskt ett sidnummer i sökmotorsoptimeringen av sidonumrering av content. På så sätt kan search engines förstå att posten har spridits över flera pages och ej är en kopia av en annan post.

The AIOSEO settings page

Dessutom kommer AIOSEO att ta bort dessa sidnummer från URL: erna på dina post sidor. På så sätt får search engines veta vilken sida i blogginlägget som de ska ranka för relevanta keywords och som användarna ska se först.

Detta görs genom att automatiskt aktivera inställningen ”No Pagination for Canonical URLs”.

AIOSEO's no pagination for canonical URLs setting

För mer information om AIOSEO, vänligen se vår artikel om hur du konfigurerar AIOSEO för WordPress.

Fler tips för att hantera långt innehåll i WordPress

Att dela upp inlägg i sidor är bara ett sätt att hantera långt innehåll. Här är några andra användbara tekniker som vi har funnit användbara:

  • Etykietka är bra för att lägga till extra detaljer utan att störa ditt huvudsakliga innehåll. De dyker upp när läsare för över vissa ord.
  • Håll läsarna engagerade genom att visa dem relaterat innehåll mitt i dina inlägg.
  • Om du har ett omfattande ämne att ta upp kan du överväga att skapa en serie inlägg istället för att skriva ett långt blogginlägg om det. Detta hjälper läsarna att följa med enkelt.
  • Rubriken på ditt inlägg är vanligtvis bara ett enskilt inlägg, men du kan dela upp den på en ny rad om den är för lång för att göra den mer läsbar.

Vi hoppas att den här artikeln hjälpte dig att lära dig hur du delar upp WordPress inlägg i flera sidor. Du kanske också vill se vår przewodnik om hur du lägger till en hämtar mer knapp i WordPress inlägg och våra expertval av de bästa tillägget för Relaterade inlägg i 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

141 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. Jiří Vaněk says

    From the point of view of seo, is it better to write one long article or divide it like this and more pages? It seems to me that a long one is better from a point of view, but maybe you have other experiences?

    • WPBeginner Support says

      It heavily depends on the content and how the pagination is used but pagination should be used more for readability than SEO.

      Administratör

      • Jiří Vaněk says

        Thank you for answer. I know that in the past it was done very often. The user may not be afraid of a large amount of text. Personally, I’m afraid that the robot will leave the site without visiting the others, and I prefer not to do this technique and try to break up the text with graphics. Anyway, thanks for the response

    • WPBeginner Support says

      If pagination is not working for your site, there is a chance that your theme does not allow pagination. In these cases we recommend checking with the support for your specific theme and they can normally help :)

      Administratör

  3. Wahyu says

    I follow this tutorial and working fine. But i have some issue, when i click pagination on page 1 or 2 everything is going fine, but when i’m going to the last page in this case is page 3, my layout structure under pagination like a related post, comments and right sidebar are broken so my website looks ugly on thoose parts. Any suggestion related this issue?.

    • WPBeginner Support says

      You would want to reach out to the support for your specific theme and let them know about that formatting error and they should be able to assist

      Administratör

    • WPBeginner Support says

      You would want to reach out to what you are using to set up the infinite scroll for how it handles post pagination.

      Administratör

  4. Hosam says

    Thanks for This tut but we want to know how to make pagination for posts as we can see on your blog category not for the articles itself only

  5. Chris says

    Hi guys,

    may it be that this doesn’t work when using the Divi theme?

    I tried, but nothing happens…

    Thanks!

    • WPBeginner Support says

      Hi Dave,

      These are not misleading links. We own list25 website and they are linked in reference to show users example of how Post Pagination is used. List25 uses it to display a post on two pages and fives pages.

      Administratör

  6. suzanne ball says

    That part works fine but I can’t get my title for the 2nd page to take the ”/2/” so the wonderful pagination you just showed takes you TO the 2nd page

  7. Ankit says

    Hello,

    Thank you for this tutorial, it is helpful!

    Though I want to know what to do if I want a button directing to next page of the same post, instead of 1,2,3… page number below?

    How can I do that?

  8. Rhonda says

    My theme is DIVI and I tried the alt, shift and p option and instead it displayed the following symbol inside worpdress editor:

    Its for a post and I do not use the DIVI BUILDER for posts.

    Why did it not work?

  9. Nrusingh says

    Sir/Madam,

    Thanks for helping me many times, and I am stuck once again.

    I want pagination on a page not posts. I have a page with 30 thumbnails with different page links. So, I want to paginate them into 3 pages with 12 (4 rows x 3 columns) thumbnails each. Is there a way?

    Thanks In Advance
    Have a nice day ahead

  10. Darius Spearman says

    Awesome…except no pagination is showing at the bottom and I don’t know what a ”single.php loop” is. Can someone explain what that is and to add something to it?

  11. Jos Mwangi says

    Thank you guys for this guide, I have been trying to do this the whole day! But I have a quick question though, is it possible to make the introduction appear on every page of the blog post? Like making it ”sticky” at the top of every sub-page.

  12. Jordan Ring says

    Thank you for the help! Spent over an hour trying to figure this out with the Divi theme. The Alt Shift P did the trick! Finally!

  13. Wenda says

    Thank you. I can’t tell you how much I appreciate this instruction. PERFECT! Thank you thank you thank you! I was thinking I’d need a plugin or theme change and well… you just solved in under 3 minutes something that I’ve already spent like 30 minutes trying to figure out! THANK YOU!

  14. Regel Javines says

    I have a Twenty Ten theme of my blog
    Now, ALT+SHIFT+P works for my well. However, it appears super below the post that it takes the reader to scroll down to see the 2nd page.
    How can I let it appear right after the end page of the post to avoid scrolling down. And, is there any code for a button NEXT, PREVIOUS page instead of Page 1, 2? Please help…

  15. Aizal says

    Thanks for this. Although need to ask, is there any plugin or code to make the pagination to appear as buttons?

  16. Enrique says

    Sorry if this is stupid, but if you copy and paste the from this article, it won’t work. The dashes are different from what they should be. You have to type it directly in your editor. I copied this and it didn’t work until I typed it with the correct dashes.

  17. Simo says

    Hello, I had to modify the single.php but rarely it worked on the last post where I did the modification and wrote sorry i don’t remember now exactly the shortcode, but when I introduced the short code in other posts it didn’t work and it appear on the post he shortode..

    So, firsly it didn’t work so I tryed it on a post, then I modified the single.php and then it worked , probably later i did some modification on the single.php, and i tryed the shortcode on other post without outcome, but still working on the frst post i modified… it’ very strange why it work on a post and not on others?

    May cache doing some ”joke”

    Thank You.

  18. Vikas Kumar says

    I don’t like to use plugins for this.

    So i am using above code to pagination wordpress post.

    It looks like text link (Page: 1 2 3 4 5.. 10) but i want to show this in Advanced Buttons. (Advanced Post Pagination plugin provide only for Pro user.)

    Please tell me how may i change Post pagination links in Advance Buttons using CSS or JS.

  19. Bidyot says

    Dear Sir,

    Thanks a lot. We have successfully add single post pagination as per your suggestion.
    But we are facing another problem.

    Pagination is displaying after our related posts display.

    How can we display pagination above the related posts column.

    Any help highly appreciated.

    • WPBeginner Support says

      For that you may need to edit your WordPress theme or settings of your related posts plugin. If your related posts plugin automatically adds related posts, then you need to contact plugin support to learn how you can delay it so that post pagination is shown first. If your related posts plugin provides a template tag, then you need to add that tag into your theme’s single.php or content-single or content.php template after the the_content() tag in the code.

      Administratör

  20. Robert Dany says

    Why do I get duplicate content in google webmaster tools after splitting a blog post to 3 pages? And how to prevent this?

  21. Bora Kurekci says

    The recommended solution of ”Alt+Shift+p” gorgeously worked for the theme SemPress on my blog.
    Thank you so much

  22. Anthony Franck says

    This is really cool and it worked, kind of. The page numbers are super ugly and there is a ”glaring inconsistency”.

    I did see that your demo site list25 has beautiful red squares, I was wondering how you went ahead and created the nice squares?

    Would it be possible to make a demo for that and send us the link?

    Also About halfway through my setting this up on my website it struggles to handle the page breaks. They are all there but putting 12 jpegs between 12 page breaks freezes up my website and it won’t allow me to load anymore images on the post. Has anyone had any issues with this crashing the database? Thanks in advance for any help

  23. Dave says

    I’d just like to say, before anyone clicks the link in this comment, it is NSFW.

    Now, on to my question.

    Here is the page I want to split into multiple:

    My problem is, there are around 80+ posts on that page already. How can I manually add a next page/next post/more to the page so that it can be split into multiple pages, instead of showing every single post and every single image on 1 page?

    It makes it awful inconvenient. It also forces the page to take forever to load. Try it out yourself. See how long it takes to load.

    Can anyone assist? What WP code can I use to break the page up? Everything I see mentions ”posts” and not ”pages”, unfortunately.

    • WPBeginner Support says

      Your WordPress theme should automatically handle this. It seems like either your plugin or a plugin you are using is lazy loading or pre-loading all the posts. Visit Settings » Reading page. There you can select how many posts you want to show on your blog pages. If it is already set at 10 or less, then this means you should check your plugin and themes. If it is set to a much higher number then you can change that here and save your settings.

      Administratör

  24. apachx says

    Whenever, I insert the nextpage tag in the HTML of the post I get the page number at the bottom of the post area. But, the problem is that some other plugins like author box and wordpress related posts are being shown before the page numbering which makes it invisible to readers.

    Is there any way to put the page numbering just below the post area e.g. below adsense link unit in the post area?

  25. me says

    Very Bad idea

    user really hate to click 1 – 9 and 9- 1 just to read it

    u maybe think about How to Increase Pageviews and Reduce Bounce Rate

    but user will just close the tab

    • Dyc3r says

      You can use ”Next/Previous” instead of page numbers with the following:

      `wp_paginate_links( array( ”next_or_number” => ”next” ) );`

      Incidentally, this is my biggest issue with the core function. There’s a glaring inconsistency between `paginate_links()` and `wp_link_pages()` in that the latter forces you to choose between numbers and next/previous.

      Granted, since this is designed to flip between pages of a single post versus pages of an ”archive”, the number of available pages will (or should) be relatively low, but it would be nice to have a little more flexibility similar to what we get with archive pagination

  26. besty says

    Nice post, it worked for me but how do i make the Next Page appear immediately after the post instead of after the related post? what i mean is that my site related Posts showing before the Next Page Link.

    How can you help?
    thanks

  27. Val Archer says

    Hi – I’m using index.php for my posts which are all one-per-page. doesn’t work for me, so I added just below the loop in index.php but it still doesn’t work. So I saved index.php as single.php because you mention ”you would need to add the following code in your single.php loop.” So I figured maybe it works only in single.php but not in index.php?

    But now I can’t find where to tell wordpress to use single.php as the template for blog posts! I have a static front page. The page ”Posts — Posts Page” does not give the option of choosing a template. Somehow once upon a time I told it to use the ”Template Name: IndexMine” for posts. But I don’t know how or where!

    Please can you tell me how I can tell wordpress to use single.php for blog posts? Then hopefully will work? Thank you!

    • Dyc3r says

      If I understand your issue correctly, you’re actually using this function in the wrong place. Think of your site like a library/bookstore where each post is a book.

      — `posts_per_page` determines how many books you put on a shelf.
      — `wp_link_pages()` will turn the page in the book you are currently reading
      — `paginate_links()` will move to a new shelf

      It sounds like you want to move to a new shelf, in which case, `paginate_links()` is the function you need

  28. Ali says

    My website contains long post and used to split them into multiple pages using ALT+SHIFT+P and this works well on my desktop theme, but when I installed WPtouch plugin I see 1 2 3 pages and when I click on any of them it reloads page no 1 .
    How can i fix this problem ?

  29. Brent says

    What if you have a featured image and only want it to show on the first page but not on pages 2, 3, 4, etc.?

  30. Shubham Mundra says

    I am using MH Magzine Pro theme. When I put the nextpage tag between the article it only shows 123…. number. I want to do it like this Pre 1 2 3 Next. Is this possible?

  31. John says

    ”If for some reason, pagination is not showing up after you have pasted the next page tags, then you would need to add the following code in your single.php loop.”

    What code?

  32. maik says

    How to invert the pagination, I want create a page and spliting in multiples pages to show the recent posts? : This mode: 3, 2, 1. and no Pages 1, 2, 3.

  33. semmy says

    Hi thank you very much for your tutorial. It’s work, oh ya I want to ask something about adsense, how we can add adsense below multiple pages, can you create a tutorial for that one? many thanks

  34. Edwin says

    Thanks for the tip, I’ve recently tried this, and the pagination shows up correctly, but when clicking the links (2,3,4,etc.), i get a page not found error. Do you have any idea what would cause that?

  35. Edmond says

    Hi,

    Really love the feature of splitting pages. I also see that you have the ”View All” option on list25.com. How can I add that same feature to my website? I’d really love to see a tutorial for this too.

  36. João Paulo Porto says

    If for some reason, pagination is not showing up after you have pasted the next page tags, then you would need to add the following code in your single.php loop.

    Which code are you talking about? I really need this code.

    • Lester says

      Olá João Paulo,

      Have you noticed how to manage pagination on wordpress long posts? This thread is not really helpful. I´m using wp 2.2.2 and I´m looking for splitting long posts in 1,2,3,4…view all pages too !

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.