[wp-trac] [WordPress Trac] #14610: WP_query does() not generate next_posts_link()
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 15 04:55:09 UTC 2011
#14610: WP_query does() not generate next_posts_link()
--------------------------+------------------------------
Reporter: jonshipman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.0
Severity: minor | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by mdawaffe):
{{{previous_posts_link()}}} shows since we're already on page/2, so it
knows there's a page/1 to go to.
{{{next_posts_link()}}} shows nothing for {{{new WP_Query}}} since it's
based on the global query.
{{{query_posts()}}} sets the global query, so fixes the issue.
I think this is pretty edge.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14610#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list