- This topic is empty.
-
AuthorPosts
-
October 26, 2009 at 6:07 pm #26559RangerMember
first of all I’ve been trying various methods to get my blog posts to show up on my home page as well as a secondary blog page (surprisingly difficult) I think I’ve got something that works but…
on my secondary blog page (entitled "The daily dose") it show the latest five posts, as expected, but when I hit the "older entries" link, it still only shows the latest 5 with a "newer entries" link, and not the earlier posts. And the older and newer entries links work fine on the front page.the secondary blog page with the problem specifically
http://wasatchendo.com/blog/?page_id=17here’s the main site:
http://www.wasatchendocrinology.comhere’s the markup for the loop on the secondary blog page.
Code:id=”post-“>Not Found
Sorry, but you are looking for something that isn’t here.
any ideas?
October 26, 2009 at 6:11 pm #65924Chris CoyierKeymasterSo is that page using the "page.php" template? I’m not sure WordPress really supports pagination there.
What you might have to do is pull the variable out of the URL (&paged=2), multiply it by the number of posts per page, and use that value as an offset parameter in a query_posts line above your loop.
October 26, 2009 at 6:22 pm #65926RangerMemberI’ve created a custome page template for the secondary blog page called "the daily dose", in this custome page template i’ve included the markup above.
so you’re saying multiply the variable from the url (2) with number of posts (5) =10 (so far i know my multiplication tables) now i’m just not sure how to "use that value as an offset parameter in a query_posts line above your loop." i’ll have to look into that?I have the index.php with the loop as the main page and then the same on the custom page, is there are better way to make two pages with the loop? one being the home page?
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.