The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. granulr
    Posted 6 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
    Posted 6 years ago #

    Function Reference/register taxonomy

    try set your rewrite rule to false.

    'rewrite' => false,

  3. granulr
    Posted 6 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
    Posted 5 years ago #

    anyone have an answer to this?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.