• Hey Everyone, I have made a custom post type

    register_post_type('services', array(
    	'label' => __('Services'),
    	'singular_label' => __('Services'),
    	'public' => true,
    	'show_ui' => true,
    	'capability_type' => 'post',
    	'hierarchical' => false,
    	'rewrite' => false,
    	'query_var' => false,
    	'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'custom-fields' )
    	));

    And I am trying to rewrite the URLS, but every time I change rewrite from false to true, I get this error:

    Fatal error: Call to a member function add_rewrite_tag() on a non-object in /home/sandbox/public_html/tcc/wp-includes/rewrite.php on line 51

    What am I doing wrong!?!! Can anyone help???

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Post Type URL Rewrites’ is closed to new replies.