[wp-trac] [WordPress Trac] #18562: WP_Query class ignores all arguments in custom post type
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 1 04:43:29 UTC 2011
#18562: WP_Query class ignores all arguments in custom post type
-------------------------------+------------------------------
Reporter: arsalkeen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2.1
Severity: critical | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by DrewAPicture):
* cc: xoodrew@… (added)
Comment:
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18562#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list