jpr
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Previous & Next links to show on index.phpYup, blueblurry’s fix works like a charm.
Forum: Themes and Templates
In reply to: Previous & Next links to show on index.phpI did a quick workaround which I’m using in my index.php template. The explaination and code are on my blog.
Forum: Themes and Templates
In reply to: Previous & Next links to show on index.phpJust tried 1.5.1 and it does not work there either. Bummer.
Forum: Themes and Templates
In reply to: Previous & Next links to show on index.phpcharbyte: I use similar code which does in fact work in 1.5 (highinfrequency.com) but not in 1.5.1. After re-reading the documentation for previous_post(), this appears to be the expected behavior. But I don’t see an obvious way to put the permalink to the previous post on the index page 🙁 I tried get_permalink(the_ID – 1), but that failed. Even if it had worked, that is not the ideal way to get the link, it is possible that the the_ID() – 1 could point to a page that has not been published yet.
Forum: Themes and Templates
In reply to: Previous & Next links to show on index.phpI have the same problem after upgrade to 1.5.1, reverted back to 1.5 for the time being. It would be nice to have a solution for this without resorting to hacking PHP. I tried using the get_posts function, but it seems like a bit much for just displaying the previous post on the index page.