Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18562, comment 4


Ignore:
Timestamp:
09/01/2011 04:44:07 AM (13 years ago)
Author:
DrewAPicture
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18562, comment 4

    initial v1  
    1 I'm not sure if this is fully related to your problem, but I had an issue ''kind'' of similar to what you're describing last week. The way I went about fixing the pagination problem on my CPT archive was to set `'rewrite' => true` and leave `'has_archive' => 'slug'` alone. Then WordPress rendered my CPT archive file of archive-post_type.php as /slug/ and /slug/page/2 etc. just fine. I found that using a rewrite array in register_post_type was causing the problem with pagination.
     1I'm not sure if this is fully related to your problem, but I had an issue ''kind'' of similar to what you're describing last week. The way I went about fixing the pagination problem on my CPT archive was to set `'rewrite' => true` and leave `'has_archive' => 'slug'` alone. Then !WordPress rendered my CPT archive file of archive-post_type.php as /slug/ and /slug/page/2 etc. just fine. I found that using a rewrite array in register_post_type was causing the problem with pagination.