Hi,
We need to display our news category posts on their own separate page. So I filtered the category from the main index as Chris described here:
http://forums.themeshaper.com/topic/filtering-one-category-from-index-loop
'
//Remove news category from blog page to avoid double posting
function no_news_in_loop() {
//test if we are on the blog page
if(is_home())
{
global $query_string;
query_posts('cat=-3');
}
}
add_action('thematic_indexloop', 'no_news_in_loop');
'
It works great, almost. It causes my pagination links to stop working. They load the appropriate page, i.e. blog/page/2/ and blog/page/3/, but the posts on every page are the same.
I'm hoping there's a quick and easy fix for it? I just can't seem to locate one.
I suppose I should also mention that I've put the news category posts on their own page by copying page.php, renaming in to page-news.php, and creating a page template with it. I then filter the index loop on that page with this function:
'
//filter news category posts to only show on news page template
function news_in_loop () {
if(is_page_template('page-news.php'))
{
query_posts( $query_string . "&cat=26");
}
}
add_action('thematic_indexloop', 'news_in_loop');
'
This also works as needed, except for the same pagination issue.
Thanks for your help.