Make WordPress Core

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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18562, comment 4

    v1 v2  
    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 when employing WP_Query.