[wp-trac] [WordPress Trac] #12906: paged broken with post_type set?
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 8 12:43:34 UTC 2010
#12906: paged broken with post_type set?
--------------------------+-------------------------------------------------
Reporter: Silkjaer | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Query | Version: 3.0
Severity: normal | Keywords: reporter-feedback
--------------------------+-------------------------------------------------
Comment(by Silkjaer):
Researched a little further. When i do
www.exampleblog.com/?post_type=post, the queryvar "p", and "page_id" is
set to "1". The page with id 1 is the page i defined for being my blog
static home page.
That id is defined on line 1489 of query.php:
{{{
$qv['page_id'] = get_option('page_on_front');
}}}
By commenting this, paging works again. So the bug is somehow related to
WP thinking that ?post_type=post == is_home()?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12906#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list