Corrected WordPress pagination plug-in WP-PageNavi to disable pagination.

Source: Internet
Author: User
Tags install wordpress
Tianya PHP blog replaced the Prower-V4 of the topic, found that this topic does not bring the article paging effect, and when you install WordPress paging plug-in WP-PageNavi and open it still does not show paging effect, so I found the modification method using the search engine and showed it in this article.

Tianya PHP blog replaced the Prower-V4 of the topic, found that this topic does not bring the article paging effect, and when you install WordPress paging plug-in WP-PageNavi and open it still does not show paging effect, so I found the modification method using the search engine and showed it in this article.
First, let's talk about this WordPress paging plug-in WP-PageNavi, which is a very useful paging plug-in and of course well-known. However, after I find someone on the Internet has encountered the problem of not displaying pages, I can't solve it myself, so I shirked the responsibility to this plug-in and said, "this plug-in is too old, not compatible with some wordpress themes. No, the reason why your topic does not display paging effect is not the problem of this plug-in, but the problem of your topic. Incompatibility is also caused by the irregularity of your current topic. Okay. if you don't need to talk about these useless things, let's talk about the solution.
At present, the Prower-V4 is not compatible, so it is the topic to illustrate the solution. Next, we will solve the paging problem of the home page, and adjust other pages by yourself.
The code for the page part of the homepage is:




This will only display "previous" and "next". Therefore, modify the settings as follows:

Max_num_pages> 1):?>








After you modify and save the settings, enable the WP-PageNavi plug-in the background and set it up. you can see the paging effect on the foreground. As for the style, you can modify the CSS code of this plug-in.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.