mistergoomba
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Offset the posts in category.phpOkay, I found the offset parameter. Thanks again for the help!
$offset = (($paged - 2) * 10) + 5; global $query_string; query_posts( $query_string . '&offset=' . $offset );
Forum: Fixing WordPress
In reply to: Offset the posts in category.phpVery cool, thanks! My first page is a little more efficient now :}
However, this doesn’t solve my problem. Page 2 assumes that Page 1 had 10 posts, not 5. Therefore 5 posts go unseen.
Forum: Fixing WordPress
In reply to: Offset the posts in category.phpIt’s a simple statement, really:
if($paged) { while ( have_posts() ) : the_post(); } } else { $i = 0; while ( have_posts() && $i++ < 5 ) : the_post(); } }
I’ll probably ending up changing the query on page 1 rather than over-query and just stop displaying after the 5th post. However, whatever method I use for that, I assume doesn’t affect pages 2 and beyond.
Thanks
Forum: Fixing WordPress
In reply to: I'd like a page to spread across all categoriesThanks, I’ll look in to hacking the .htaccess file to get my desired result.
I’m sorry that I’m having a problem explaining what I’m trying to do. I don’t intend for /news to be a post within a certain category. I just need one template for all categories that will incorporate the /news permalink.
/news will probably not even have any WordPress data in it, other than checking to see what category it’s in.
Thanks again! I think I can try to use the .htaccess file to achieve what I want.
Forum: Fixing WordPress
In reply to: I'd like a page to spread across all categoriesThe data doesn’t really matter. The hope is that I can have:
/category_1/news
/category_2/newsand have them use the same template. Hopefully without having to create a new page under every single category.