WordPress.org

Ready to get started?Download WordPress

Forums

what is most efficient permalink structure when using post_types? (4 posts)

  1. Anointed
    Member
    Posted 4 years ago #

    I've read in the documentation that it's not recommended to use category/post-name, but really have not found good resources explaining the most efficient system.

    For the most part, I plan on using post_types for just about everything in the website.

    Not even sure if it's possible, but can I use something like /post_type/post-name/ or something similar?

    Just curious to hear what others think about this.

  2. Per http://ottopress.com/2010/category-in-permalinks-considered-harmful/

    Leave a number, or something static, at the beginning of your permalink string and you’ll never have any sort of problems.

  3. londonhogfan
    Member
    Posted 4 years ago #

    On a related note... Is it possible to have a custom permalink structure just for post types?

    My regular blog posts are setup as
    ".com/year/month/day/post-name"

    can I keep that structure, but on a custom post type use
    ".com/year/post-type/post-name"

  4. MichaelH
    Member
    Posted 4 years ago #

    No permalinks for post types like there are for archives. There's a permalink for a given post type article, but that's it. If you want to display the items (posts) of a given post type create a page an use a new WP_Query with a 'post_type'=> 'your post type' argument.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags