Title: Problem in custom rewrite rules
Last modified: August 21, 2016

---

# Problem in custom rewrite rules

 *  [Nitesh](https://wordpress.org/support/users/niteshgwb/)
 * (@niteshgwb)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/problem-in-custom-rewrite-rules/)
 * i have register a custom post type listing with this simple code.
 * function create_new_custom_post_type() {
 *  register_post_type( ‘POST_TYPE’,
    array( ‘labels’ => array( ‘name’ => __( ‘listing’),‘
   singular_name’ => __( ‘listing’ ) ), ‘public’ => true, ‘has_archive’ => true,‘
   rewrite’ => FALSE, ) ); }
 * add_action( ‘init’, ‘create_new_custom_post_type’ );
 * i have some costume field for this post type like location, property type. i 
   just want to add this costume field in the url structure. i just want to create
   url like this :
    [http://www.mydomain.com/location/property_type/propertyid](http://www.mydomain.com/location/property_type/propertyid)
 * How can i rewrite the url like that. ? location and property_type is varying 
   according to the post.

The topic ‘Problem in custom rewrite rules’ is closed to new replies.

## Tags

 * [custom rewrite rules](https://wordpress.org/support/topic-tag/custom-rewrite-rules/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 0 replies
 * 1 participant
 * Last reply from: [Nitesh](https://wordpress.org/support/users/niteshgwb/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/problem-in-custom-rewrite-rules/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
