[wp-trac] [WordPress Trac] #14324: 404 when querying custom post types on author.php
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 16 09:33:29 UTC 2010
#14324: 404 when querying custom post types on author.php
-----------------------------------------------------------+----------------
Reporter: truthmedia | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Post Types | Version: 3.0
Severity: major | Resolution: invalid
Keywords: post_type, author.php, 404, custom post types |
-----------------------------------------------------------+----------------
Changes (by scribu):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
404s are sent before the template file is chosen, which just makes sense.
So, you should use the 'pre_get_posts' action to alter your query (the
code should be placed in functions.php).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14324#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list