A permalink should be permanent, right?
March 4, 2010 1:12 AM   Subscribe

How can I make my Wordpress post navigation link to a permalink, and not "page/2/"?

I recently redesigned my personal, Wordpress based blog site at http://www.sanspoint.com. I had the clever idea to have one post per update, and simple "older" and "newer" navigation to move between them. While it works, the links are screwy. Going from the article on the front page to the previous article takes you to http://www.sanspoint.com/page/2 - which is whatever article was posted previously.

I want these links to just go to the damn post permalink. Sadly, after scrounging through the Codex, I'm just lost. The code I think would work doesn't even display links at all!

This is my WordPress Loop, with the code for page navigation. I'm sure I'm overlooking something stupidly simple here. Can someone help?
posted by SansPoint to Computers & Internet (2 answers total)
Argh. I figured it out myself. Turns out the tags that link to a permalink can't be used in index.php - so I had to do a query_posts() to get the previous page, and link it THAT way.

On the individual posts, it works.
posted by SansPoint at 2:13 AM on March 4, 2010

Your situation made me think of this article on pagination -- scroll down to the section at the end called "flip flop" -- the idea is that page numbers for paginated content stay fixed as new content is added, so that the paginated URLs become permalinks in their own right. No clue if WP even supports an idea like this, but I thought it might be interesting to think about.
posted by misterbrandt at 8:00 AM on March 4, 2010

« Older What page does this scene in "Infinite Jest" take...   |   About 50% tear gas should do. Newer »
This thread is closed to new comments.