• Is there a way, using the page feature, to have a slug such as /word1/number2? I’m trying to do something like /travel/spring05/1 for day 1, and /2 for day 2, etc etc. When I try to use a /, it just uses stripslashes and creates it as travelspring051 instead of how I want it. Ideas?

    (Using WordPress 1.5 stable, not nightly)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Kafkaesqui

    (@kafkaesqui)

    Is there a reason this wouldn’t work as regular posts in a category of ‘travel’, sub-category of ‘spring05’, etc. ?

    A slash (/) denotes a directory (real or not) in your url, and you would not be able to set up a Page slug–hence a filename–using it. What you could do is specify Page ‘spring05’ as a child to ‘travel’, which would provide a custom permalink url the hierarchy of /travel/spring05/.

    From there you could set up numbered child pages for spring05, but there’s a current bug in Pages where having two or more Pages with the same name (that is, Page slug) combines them when displayed; so spring05/1 and summer/01 would double-up. I expect this will be fixed, but a way around it is to insert the <!--nextpage--> Quicktag in the Page starting on each new day, which would provide page links to each, and a url of /travel/spring05/1/, /travel/spring05/2/, and so on.

    Thread Starter Jon Dingman

    (@jdingman)

    Yes, the solution was:

    adding <!–more–> code in the post, then I just did /travel/spring05/1, /2, /3 — the <!–more–> code is the updated version of nextpage for 1.5+ (as far as I know)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘page slugs’ is closed to new replies.