Les longues publications WordPress peuvent être difficiles à lire. Comment partager un contenu détaillé sans perdre l’intérêt de vos lecteurs ?
La réponse est la pagination des publications, qui consiste à diviser une longue publication en plusieurs pages plus courtes. Nous avons utilisé cette méthode pour diviser de grands guides et de longs tutoriels dans certains de nos projets de blogs. À chaque fois, nous avons remarqué que les lecteurs s’intéressaient davantage au contenu.
Dans ce guide, nous allons vous afficher comment diviser vos publications WordPress en plusieurs pages. Nous couvrirons des méthodes faciles, avec et sans extension.
Pourquoi diviser les publications WordPress en plusieurs pages ?
Si vous avez des publications de blog ou des guides WordPress qui sont longs, alors le fait de configurer la pagination WordPress peut améliorer la lisibilité de votre contenu.
Il est utile de décomposer une longue publication en différentes sections et de les diviser en plusieurs pages. De cette façon, les internautes peuvent facilement digérer votre contenu et lire n’importe quelle section qui les intéresse.
Un autre avantage de la division des publications WordPress est qu’elle peut stimuler l’engagement de vos utilisateurs/utilisatrices. Lorsque les utilisateurs/utilisatrices naviguent dans un contenu paginé, chaque page qu’ils/elles voient contribue à augmenter le nombre de pages vues, ce qui peut avoir un impact positif sur les métriques globales de votre site.
Cela étant dit, voyons comment diviser les publications WordPress en plusieurs pages. Nous allons voir comment diviser vos publications WordPress en plusieurs pages sans extension et en utilisant une extension WordPress:
- Méthode 1. Diviser une publication WordPress en plusieurs pages sans extension
- Méthode 2. Diviser plusieurs publications WordPress en plusieurs pages à l’aide d’une extension
Méthode 1 : Diviser une publication unique en plusieurs pages sans extension
La façon la plus simple de configurer la pagination des articles est d’utiliser le bloc « Saut de page » dans votre éditeur/éditrices WordPress. Vous n’avez pas besoin d’une extension WordPress pour diviser vos articles en plusieurs pages.
Tout d’abord, vous devez modifier ou ajouter un nouvel article sur votre site WordPress à l’aide de l’éditeur de blocs Gutenberg.
Ensuite, cliquez sur le bouton » + » à l’endroit où vous souhaitez diviser votre contenu et ajoutez un bloc Saut de page.
Vous devriez maintenant voir une ligne de saut de page dans votre contenu pour indiquer l’endroit où la pagination apparaîtra.
Il se présentera comme suit.
Si vous utilisez l’ancien éditeur classique, vous pouvez utiliser l’identifiant <!--nextpage-->
pour diviser votre contenu.
Lors de la rédaction d’un article de blog, il suffit de se rendre dans la vue de l’éditeur/éditrice de texte pour saisir les identificateurs dans lesquels vous souhaitez diviser l’article long.
Vous pouvez également utiliser les touches Alt + Shift + P de votre clavier pour insérer des sauts de page. Pour ce faire, accédez à la vue « Visuel » et appuyez sur les touches de raccourci clavier à l’endroit où vous souhaitez ajouter un saut de page.
Ensuite, vous pouvez prévisualiser et publier la publication du blog. Vous verrez maintenant la pagination du post en bas du contenu de la publication.
Méthode 2 : Diviser plusieurs publications WordPress en plusieurs pages à l’aide d’une extension
Une autre façon de diviser un long contenu en différentes pages est d’utiliser une extension de pagination. L’avantage de cette méthode est qu’elle pagine automatiquement les publications lorsqu’elles répondent à certains critères.
Pour cette méthode, nous utiliserons l’extension gratuite Automatically Paginate Posts, car elle est facile à utiliser et fonctionne avec n’importe quel thème WordPress.
Note : Vous remarquerez peut-être que cette extension n’a pas été testée avec les dernières versions de WordPress. Cependant, nous l’avons essayé nous-mêmes, et il fonctionne le mieux parmi toutes les extensions que nous avons vérifiées.
Vous pouvez en savoir plus sur la question de savoir si vous devriez utiliser des extensions WordPress non testées dans notre article. Si vous trouvez une extension qui fonctionne mieux que celle que nous avons proposée, alors n’hésitez pas à nous le faire savoir dans les commentaires ci-dessous !
Tout d’abord, vous devez installer et activer l’extension Automatically Paginate Posts sur votre site WordPress. Pour plus de détails, vous pouvez consulter notre tutoriel sur l ‘installation d’une extension WordPress.
Une fois l’extension activée sur votre site, allez dans Réglages » Lecture et défilez vers le bas jusqu’à la section ‘Automatically Paginate Posts’.
Vous pouvez sélectionner les types de publication à diviser en différentes pages. Choisissez ensuite de diviser les publications en fonction du nombre total de pages ou du nombre approximatif de mots par page.
Cliquez ensuite sur le bouton « Enregistrer les modifications » pour stocker vos réglages.
L’extension définira automatiquement votre contenu en fonction de vos Réglages. Cependant, vous pouvez également ajouter des sauts de page manuellement à votre contenu tout en utilisant l’extension.
Astuce bonus : Utilisez AIOSEO pour optimiser la pagination de vos publications
La pagination de votre longue publication peut définitivement améliorer l’expérience des utilisateurs/utilisatrices. Cela dit, il est important que vous configuriez correctement la publication afin qu’elle n’ait pas d’incidence négative sur le SEO (optimisation pour les moteurs de recherche) de votre site.
Si une publication de blog est répartie sur plusieurs pages en raison de la pagination, Googlebot pourrait finir par indexer plusieurs copies du même contenu. Cela peut alors conduire à des problèmes de contenu dupliqué.
Heureusement, vous pouvez éviter cela en utilisant l’extension All in One SEO (AIOSEO). Cette extension de référencement WordPress permet de rendre votre site facile à référencer, même si vous n’avez aucune expertise technique.
AIOSEO insère automatiquement un numéro de page dans le titre SEO des contenus paginés. De cette façon, les moteurs de recherche peuvent comprendre que la publication a été répartie sur plusieurs pages et qu’elle n’est pas un duplicata d’une autre publication.
En outre, AIOSEO retirera ces numéros de page des URL de vos pages de publication. Les moteurs de recherche sauront ainsi quelle est la page principale de la publication du blog qu’ils devraient classer pour les mots-clés pertinents et que les utilisateurs/utilisatrices devraient voir en premier.
Pour ce faire, il active automatiquement le réglage « Aucune pagination pour les URL canoniques ».
En savoir plus sur l’AIOSEO, veuillez consulter notre article sur la façon de configurer l’AIOSEO pour WordPress.
Plus d’astuces pour gérer les contenus longs dans WordPress
La division des publications en pages n’est qu’un moyen parmi d’autres de gérer les contenus longs. Voici d’autres techniques utiles que nous avons trouvées :
- Lesinfobulles sont idéales pour ajouter des détails supplémentaires sans encombrer votre contenu principal. Elles apparaissent lorsque le lecteur survole certains mots.
- Maintenez l’intérêt des lecteurs en leur affichant des contenus similaires au beau milieu de vos publications.
- Si vous avez un vaste Sujet à traiter, envisagez de créer une série de publications au lieu d’écrire un long article de blog à ce sujet. Cela aide les lecteurs à suivre le fil de l’histoire.
- Le titre de votre publication se résume généralement à un titre unique, mais vous pouvez le placer sur une nouvelle ligne s’il est trop long afin de le rendre plus lisible.
Nous espérons que cet article vous a aidé à apprendre comment diviser les publications WordPress en plusieurs pages. Vous pouvez également consulter notre guide sur la façon d’ajouter un bouton load more dans les publications WordPress et nos choix d’experts sur la meilleure extension de publications similaires sur WordPress.
Si vous avez aimé cet article, veuillez alors vous abonner à notre chaîne YouTube pour obtenir des tutoriels vidéo sur WordPress. Vous pouvez également nous trouver sur Twitter et Facebook.
Jiří Vaněk
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
It heavily depends on the content and how the pagination is used but pagination should be used more for readability than SEO.
Administrateur
Jiří Vaněk
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
Dapo
Thank you for this post. Unfortunately, this does not show anything on the frontend.
WPBeginner Support
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
Administrateur
Wahyu
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
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
Administrateur
pankaj
can i change nextpage name
example:
name. com/love/1/
to
name . com/love/hello
WPBeginner Support
For what it seems like you’re wanting, you would want to look at changing your permalinks: https://www.wpbeginner.com/wp-tutorials/how-to-create-custom-permalinks-in-wordpress/
Administrateur
Al Hasan
Thanks for the tutorial, I want ask, Can I make infinite scroll on this multiple pages ?
thanks
WPBeginner Support
You would want to reach out to what you are using to set up the infinite scroll for how it handles post pagination.
Administrateur
Hosam
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
Chris
Hi guys,
may it be that this doesn’t work when using the Divi theme?
I tried, but nothing happens…
Thanks!
Dave
Your link for « two pages » goes to http://list25.com/25-hilarious-siri-responses/ and your link for « five pages » goes to http://list25.com/25-epic-fail-gifs/ … did your site get hacked or are these misleading ad links that you’re getting paid for?
WPBeginner Support
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.
Administrateur
Lauro Carvalho
Very simple and useful! I was really looking for this. Much appreciated!
suzanne ball
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
Ankit
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?
Rhonda
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?
Nrusingh
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
Shiraz
It works for me, but with some layout issue. The pagination buttons are not in same row.
Darius Spearman
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?
Jos Mwangi
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.
Jordan Ring
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!
waqastaqee
thanks alot. thus was vary helpful. i was trying for hours but don’t get it.
« alt+ shift+ p » done
Joseph Chotard
Thank you,
This is helped me a lot as I had no idea how to create multiple pages.
Wenda
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!
WPBeginner Support
Hi Wenda,
We are glad you found this article helpful. You may also want to subscribe to our YouTube Channel for WordPress video tutorials.
Administrateur
Regel Javines
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…
Aizal
Thanks for this. Although need to ask, is there any plugin or code to make the pagination to appear as buttons?
Dankasaurus
Not sure if there’s a plugin but normally you would have to modify that with CSS.
Enrique
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.
Enrique
The comments system removed a word. What I meant is
« …If you copy and paste the « nextpage » from this article… »
André Quintão
Thanks, you saved me a lot of trouble. Cheers!
Kareem
Thank you!!!
Simo
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.
Kuen
I was going through this article how you customized the theme for list25 ( https://www.wpbeginner.com/wp-tutorials/case-study-behind-the-scenes-look-of-list25-plugins-and-hacks/comment-page-1/#comment-338067 )..
List 25 uses custom editor layout and first part of it is the « List Description » which is fixed throughout the post.. How can i do that?
sudhir k Gupta
Cont..
I am using Masonic theme
Vikas Kumar
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.
Bidyot
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
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.
Administrateur
Robert Dany
Why do I get duplicate content in google webmaster tools after splitting a blog post to 3 pages? And how to prevent this?
Bora Kurekci
The recommended solution of « Alt+Shift+p » gorgeously worked for the theme SemPress on my blog.
Thank you so much
Anthony Franck
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
WPBeginner Support
You can see the List25 CSS by right clicking on the page navigation and select Inspect from browser menu.
Administrateur
Dave
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
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.
Administrateur
apachx
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?
me
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
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
besty
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
Mantas
Same problem here. Does anyone knows solutions to this problem?
Stephen Pate
That appears on my site and looks like Jetpack features get ahead of the pagination.
Val Archer
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
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
Maran
I was thinking if there a way to do it. You guys rock. I am glad that I am following on twitter.
Ali
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 ?
WPBeginner Support
Please contact WPTouch support.
Administrateur
James
But I also dont want to index 2nd and 3rd page and how to solve pagination in wordpress.
Brent
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.?
Brent
Anyone have an answer?
Shubham Mundra
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?
John
« 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?
WPBeginner Support
Thanks for notifying us. We have updated the article.
Administrateur
Aaron
nope not working at all for me… ugghhhhhh whyyyyyyy
Agung
Maybe not supported on your theme