[wp-hackers] Custom permalinks with the Rewrite API
otto at ottodestruct.com
Fri Oct 9 18:18:56 UTC 2009
Try this example on for size:
On Fri, Oct 9, 2009 at 10:48 AM, Eric Martin <emartin24 at gmail.com> wrote:
> I want to be able to allow users to custom sort a group of posts by
> adding a custom rewrite rule. I'm thinking of the following structure:
> I have tried doing this a couple of ways, but can't seem to get it to
> - some-slug as a page
> - some-slug as a category and using permalink structure of /%category%/
> One catch is that the sorting should still work with pagination.
> Depending on which they do first, the URI could look different:
> I tried using an endpoint first, but that doesn't seem to work with 2
> endpoints together, which makes sense.
> So, I'm curious if others have done this and if there are any
> suggestions on the "best" approach. I'd love to see some examples and
> appreciate any help you can provide.
> On a side note, there doesn't seem to be a whole lot of good
> documentation or examples surrounding the Rewrite API. What
> information is out there (on blogs and such) is often outdated or
> misleading. Based on what I'm able to learn through this processes, I
> hope to be able to create some helpful information and examples on how
> the Rewrite API works.
> Eric Martin
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers