Support » Installing WordPress » 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’,
    ‘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 :

    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.