I registered custom post type by register_post_type('new_post',$args); So new post url looks like `http://myweb.com/new_post/post_name
Can I change _later_ the part of url from new_post to something else?
|
I registered custom post type by Can I change _later_ the part of url from |
|||||||||
|
|
It would help if you listed your $args array, but, the portion you are looking for is under 'rewrite'. Here's the way I like to build an $args array for registering a post type:
The portion of this you are looking for is the $rewrite part, change the slug to whatever you want (url friendly of course, no weird characters or spaces). You may even wish to put slashes in there. In my example, a URL reads: www.website.com/archives/post_name/ |
|||||||||||||
|