我最近在ThemeForest购买了一个主题,这是一个美好而干净的房地产主题,适合我的一个家庭成员,但主题是基于英语。 我用POedit翻译了它,但还有一个问题。
似乎永久链接设置为site.com/properties/post-name,“properties”是一个我无法更改的变量。
无论我在永久链接部分选择什么,它都不会改变它;我想知道在哪里设置这些默认设置。
由于
编辑:
以下是导致我头痛的代码行(Thx McNab foir指出)
if( !function_exists('wpestate_create_property_type') ):
function wpestate_create_property_type() {
register_post_type('estate_property', array(
'labels' => array(
'name' => __('Properties','wpestate'),
'singular_name' => __('Property','wpestate'),
'add_new' => __('Add New Property','wpestate'),
'add_new_item' => __('Add Property','wpestate'),
'edit' => __('Edit','wpestate'),
'edit_item' => __('Edit Property','wpestate'),
'new_item' => __('New Property','wpestate'),
'view' => __('View','wpestate'),
'view_item' => __('View Property','wpestate'),
'search_items' => __('Search Property','wpestate'),
'not_found' => __('No Properties found','wpestate'),
'not_found_in_trash' => __('No Properties found in Trash','wpestate'),
'parent' => __('Parent Property','wpestate')
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'properties'),
'supports' => array('title', 'editor', 'thumbnail', 'comments','excerpt'),
'can_export' => true,
'register_meta_box_cb' => 'wpestate_add_property_metaboxes',
'menu_icon'=>get_template_directory_uri().'/img/properties.png'
)
);
将slu to更改为其他内容之后,地址就变成了正确的地址,但都以404结尾。我的链接现在已经创建了吗?