I should post this on the WP forums, but I figure that I'll get a better quality response here if there happens to be someone who knows the answer .
I've modified the page.php template for my site to display posts from a particular category, by inserting a call to query_posts(&cat=x). I saved this template as, let's say feature_page.php. I also modified index.php to exclude posts from this category on the home page, using a similar call. To be specific here are the two calls:
index.php -
query_posts($query_string . "&cat=-x&posts_per_page=10);
feature_page.php -
query_posts("cat=x&posts_per_page=10);
Both loops contain a call to page_nav() at the bottom.
In index.php the concatenation of the contents of $query_string was necessary to preserve navigation in the new query, because the requested page comes over as a rewritten url and turns into a querystring parameter.
I need the same thing in feature_page.php, but no matter what I do it doesn't work. I'm guessing that since the page name is part of the rewritten url it's breaking the nav somehow. I guess I can declare some variables and build my own navigation, but I'm hoping there's an easier answer.
I've modified the page.php template for my site to display posts from a particular category, by inserting a call to query_posts(&cat=x). I saved this template as, let's say feature_page.php. I also modified index.php to exclude posts from this category on the home page, using a similar call. To be specific here are the two calls:
index.php -
query_posts($query_string . "&cat=-x&posts_per_page=10);
feature_page.php -
query_posts("cat=x&posts_per_page=10);
Both loops contain a call to page_nav() at the bottom.
In index.php the concatenation of the contents of $query_string was necessary to preserve navigation in the new query, because the requested page comes over as a rewritten url and turns into a querystring parameter.
I need the same thing in feature_page.php, but no matter what I do it doesn't work. I'm guessing that since the page name is part of the rewritten url it's breaking the nav somehow. I guess I can declare some variables and build my own navigation, but I'm hoping there's an easier answer.