Wordpress - Custom Taxonomy Pagination

前端 未结 6 1054
我在风中等你
我在风中等你 2020-12-11 21:00

I\'m using:

  • Wordpress 3.4
  • WP-PageNavi 2.82

I register custom taxonomy (catalog)



        
6条回答
  •  不思量自难忘°
    2020-12-11 21:39

    What helped me is to set "Blog pages show at most" in Reading Settings to 1. Then it works.

    With the default 10, it throws 404 error on page 2. On page 1 it's all perfect.

    So given this works, the solution is to set "Blog pages show at most" to 1 only for those taxonomies or categories you need. The code you should place inside functions.php is here: https://forums.envato.com/t/wordpress-custom-page-type-taxonomy-pagination/76549/12

提交回复
热议问题