[wp-hackers] Taxonomy - Custom Post Type - Pagination?

Joaquin Rodriguez Montero yojoaquin at gmail.com
Mon Sep 20 13:10:35 UTC 2010


Thanks Philip. When I do that I get "extra empty pages" in the pagination,
as if it was not counting posts_per_page...

----- Original Message -----
Date: Sun, 19 Sep 2010 20:13:47 -0700
From: "Philip M. Hofer \(Frumph\)" <philip at frumph.net>
Subject: Re: [wp-hackers] Taxonomy - Custom Post Type - Pagination?
To: <wp-hackers at lists.automattic.com>
Message-ID: <FC8456E0DCA74249AA68775B569C3CE8 at frumph.net>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
       reply-type=original

".$page."  (or)  {$page}

its not translating into the string otherwise.

----- Original Message -----
From: "Joaquin Rodriguez Montero" <yojoaquin at gmail.com>
To: <wp-hackers at lists.automattic.com>
Sent: Sunday, September 19, 2010 7:55 PM
Subject: [wp-hackers] Taxonomy - Custom Post Type - Pagination?


> Hi guys,
>
> I'm sure this is really simple but I can't seem to find out what's going
> on.
>
> I'm trying to do the following on my taxonomy-term.php
>
> $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
> query_posts("
> post_type=postype&
> paged=$page&
> posts_per_page=16&
> orderby=title&
> order=ASC&
> term=$termslug");
> $i = 1; while (have_posts()) : the_post();
>
> Result: list of posts ok, pagination wrong. It's getting the pagination as
> if it was querying every post. Why I wanna do it this way? Cause I want to
> get the posts ordered by title.
>
> Any clue that could help me?
>
> Thanks!
>
> J
> ______________________________
_________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list