Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress Custom Post Type with date permalinks

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35786

    I know Chris is a big WP fan, so hopefully, some readers have some answers for what I’m trying to accomplish.

    Registering post types with WP 3.0+ is pretty straight forward and easy (and well documented). However, when using the slug parameter, you’re able to establish a URL slug for that post type, but if your post type is similar to the “post” post type, then you may want to use date functions to produce that URL. That’s what I want to do and something I’m very close to achieving, but am not quite there yet.

    This URL gets me half way there (http://www.johnpbloch.com/2010/08/custom-post-types-and-better-permalinks/) but I have other issues regarding date based archiving and pagination of such.

    Does anyone here know of any resources or libraries that has this type of solution laid out? Essentially, I want to replicate the WP Post post type and establish a second post type identical to it.

    #93255
    TheDoc
    Member

    Never tried this myself, but these seem to accomplish what you’re after:

    http://wpadventures.wordpress.com/2011/02/13/custom-post-type-archives/
    http://seebz.net/notes/#note-145

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.