Adding Pagination using WP-PageNavi?
I'm trying to figure out how to add previous and next page numbering to my WordPress site. I was hoping there was a simple plugin that didn't involve coding (since I'm new at this) but it seems I'll have to deal with a bit of code.
The online articles I've come across suggest a plugin called WP-PageNavi. It seems this plugin has a default setting that can be changed with a bit of coding.
What I'm not understanding is how the plugin works. is it simply going to break long posts into multiple pages automatically? So all I'd do is continue adding content to the one page and the plugin will create multiple page views for the live publication?
Or do I have to set the page breaks? And if so, how do I do that?
I'm sure someone out there has page numbering on their Wordpress site. Please advise about this plugin or suggest another plugin that may be of better use to this coding newbie. Thanks.
I did a quick search in the plugins directory and found lots of plugins but this one
looks like it would be very simple, you just have to find the container id where you want it to show up and past it in the fields in the settings. I have never used this plugin before, I would hard code this into the theme itself, so can not say if it works or not.
If you don't mind editing your theme files a little I would go with the WP-PageNavi plugin it has lots of downloads so you know it works fine.
I use the WP-PageNavi on my blog. I basically adds page number to pages such as index, categories, tags, archives, etc. that display a lot of posts. For regular single post pages, I stick with the next and previous links.
For me once I enabled the WP-PageNavi plugin it was just a matter of changing the CSS to blend the page number links with my blog.
If you are looking to break up a large post into multiple pages then you can just insert the WordPress tag
into locations throughout the post.
I'm going to have several long posts that will contain lots of content per post. I want each post to be broken up into multiple pages and I want those pages numbered (not just next and previous).
So for example, say one post was about oranges. Post orange would have several pages of numbered content. Say the next post was about mangos. Post mango would also have several pages of numbered content.
This site is for a class so the number is important for reference. What I don't understand about the WP-PageNavi is how it works.
Do I just continue adding content to the single post and PageNavi will auto break and number the pages when they are live? Or is there something I need to do manually or code for each post?
It depends. WP-PageNavi generally works for the archive-type pages, where you display the summaries of several posts - such as you would see on the homepage of a blog.
If you would like to break up a long post just insert <!--nextpage--> where you would like a new page to start. When you view the post, hopefully, the theme will display the page numbers at the bottom of the post.
When using the <!--nextpage--> tag, the permalink for the pages would be something like: