Wordpress - Custom Taxonomy Pagination

前端 未结 6 1067
我在风中等你
我在风中等你 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:27


    When you create any CPT then you need to add this function.

    flush_rewrite_rules();
    It will manage/adjust/reassign your memory.
    So please add this line your code will work.
    Precaution.
    1: Add this function : flush_rewrite_rules();
    2:Your pagination function (wp_pagenavi()) will call just below the endwhile;
    I 'm sure,your pagination will work and let me know if it will not work.
    Thanking you.

提交回复
热议问题