WordPress.org

Ready to get started?Download WordPress

Forums

Make Custom Post Types Permalinks the same as Regular Posts? (4 posts)

  1. spiritfly
    Member
    Posted 2 years ago #

    My permalinks for my default posts is set to:

    /%year%/%monthnum%/%day%/%postname%/

    I have created custom post types called: reviews .
    I have rewrite set to true ('rewrite' => true,) in my functions.php, but the permalink for my custom post types is like:

    domain.com/review/post-name/

    I would like to have the same permalink on my custom post types as the one on my default posts. Is that possible? Actually I know almost anything is possible, but how? :)

  2. Pankaj Pandey
    Member
    Posted 2 years ago #

  3. spiritfly
    Member
    Posted 2 years ago #

    Thanks for your fast reply Pnkaj Pandey, but unfortunately it is still the same. I added ( 'with_front'=>true ) and flushed, but nothing changed. My custom post types still show up as:

    domain.com/review/post-name

    Just to clarify. I want the same permalink structure for my custom post types as I have it set for my default posts now. My default posts show up as:

    domain.com/2012/02/28/post-name

    I want my custom post types to appear the same as my default posts:

    domain.com/2012/02/28/custom-post-name

    How can I achieve this?

  4. spiritfly
    Member
    Posted 2 years ago #

    After a little research I came to the conclusion that the custom post types permalinks is still a muddy subject, so I will be stop thinking in that direction for now.

    I decided to use only custom taxonomies for that matter, and use custom post types ONLY when necessary.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.