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

Joaquin Rodriguez Montero yojoaquin at gmail.com
Mon Sep 20 02:55:05 UTC 2010


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


More information about the wp-hackers mailing list