我认为您需要使用重写参数。
下面是一个将url设置为tips的示例
$args = array(
\'public\' => true,
\'publicly_queryable\' => true,
\'show_ui\' => true,
\'show_in_menu\' => true,
\'query_var\' => true,
\'rewrite\' => array( \'slug\' => \'tips\' ), // Here!
\'capability_type\' => \'post\',
\'has_archive\' => true,
\'hierarchical\' => false,
\'menu_position\' => 20,
\'supports\' => array( \'title\', \'editor\', \'author\', \'thumbnail\', \'excerpt\', \'comments\', \'revisions\', \'custom-fields\')
);
register_post_type( \'tips\', $args );
更多信息:
http://codex.wordpress.org/Function_Reference/register_post_type