[theme-reviewers] Mini-Site Theme query_posts use
Andrew Nacin
wp at andrewnacin.com
Wed Sep 1 06:30:12 UTC 2010
On Mon, Aug 30, 2010 at 11:33 AM, Otto <otto at ottodestruct.com> wrote:
> On Mon, Aug 30, 2010 at 9:59 AM, Philip M. Hofer (Frumph)
> <philip at frumph.net> wrote:
> > Nevermind I see it, header.php has
> >
> > //The Query
> > query_posts('posts_per_page=10');
>
Calling query_posts() like that overrides everything else, and most people
forget that "everything else" includes paging.
IIRC, thus, you'd need to do something like this for it to work:
query_posts( array( 'posts_per_page' => 10, 'paged' => get_query_var(
'paged' ) ) );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20100901/90eec7c7/attachment-0001.htm>
More information about the theme-reviewers
mailing list