WordPress.org

Ready to get started?Download WordPress

Forums

Monthly Archive Category URL (6 posts)

  1. pluto198
    Member
    Posted 6 years ago #

    The following URL works as a monthly archive for a particular category:
    http://example.com/category/category-name/?year=2007&monthnum=10

    Can I change that to the following:
    http://example.com/category/category-name/2007/10

    ?

  2. trice22
    Member
    Posted 5 years ago #

    Hello,

    I don't know if you're still following this thread, but I'd be really interested in how you go the first URL to work and if you have found a solution for your problem, how to convert it into a nice url.

    Thanks,
    —trice

  3. Roy
    Member
    Posted 5 years ago #

    "Settings", "permalinks".

  4. trice22
    Member
    Posted 5 years ago #

    Thanks for the reply. I'm aware of this feature of course and I'm using it actually like this:
    Custom structure: -> /%category%/%postname%.html
    The problem is, that I'd like to use a different structure for my archive views, but WP doesn't allow me to specify more than one structure, right?
    I'd like to use
    /archives/%category%/%year%/%month%/
    for my archives but only for my archives.

    Any ideas on that?
    Thanks again,
    —trice

  5. Roy
    Member
    Posted 5 years ago #

    I have post-id/postname and my archives come out the way you want, but then again, I don't think you can use different permalinks for posts and archives no.

  6. trice22
    Member
    Posted 5 years ago #

    Actually it was a misconception on my side, that caused my problem.
    I wasn't aware that the url doesn't always have to contain all parts of the permalink structure.
    I'm using
    /%category%/%year%/%monthnum%/%postname%.html now and it works like a charme for
    /category/2008
    as well as for /category/2008/04/post.html

    Sorry, my (pretty stupid) mistake.
    —trice

Topic Closed

This topic has been closed to new replies.

About this Topic