Hello,
I am registering a custom post type like so:
register_post_type('agent_info', array(
'labels' => array('name' => __('Agents'),
'singular_name' => __('Agent'),
'add_new_item' => __('Add New Agent'),
'edit_item' => __('Edit Agent'),
),
'public' => true,
'_builtin' => false,
'query_var' => true,
'rewrite' => array('slug' => 'agents', 'with_front' => false),
'show_ui' => true,
'supports' => array('title')
));
and when i try to access an agent using '/agents/agent-name-slug' i get a 404 error, but i change agents to agent_info, it works fine. What am i missing to allow the rewrite stuff to work properly?