WordPress.org

Ready to get started?Download WordPress

Forums

Remove slug from custom post type? WP 3.0 (4 posts)

  1. granulr
    Member
    Posted 4 years ago #

    How can I remove the slug from a custom post type?

    eg: I have a custom post type of directory and my permalink looks like this = /directory/california

    I want to remove the "directory" from the permalink so it is just /california

  2. Od3n
    Member
    Posted 4 years ago #

    Function Reference/register taxonomy

    try set your rewrite rule to false.

    'rewrite' => false,

  3. granulr
    Member
    Posted 4 years ago #

    That doesn't work exactly... that just goes to standard url structure.

    Is there a way to remove something in the url string through mod rewrite?

  4. lerizzle
    Member
    Posted 3 years ago #

    anyone have an answer to this?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.