Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress WPML配置文件_Wordpress_Wpml - Fatal编程技术网

Wordpress WPML配置文件

Wordpress WPML配置文件,wordpress,wpml,Wordpress,Wpml,我正在尝试将wpml-config.xml添加到主题的根目录中。文件只有一个选项: <wpml-config> <custom-field action="translate">block_1</custom-field> </wpml-config> 但无论我做什么,选项都不在上面的翻译管理检查图片中勾选。这里缺少什么?缺少主选项键。应该是: <wpml-config> <custom-fields>

我正在尝试将wpml-config.xml添加到主题的根目录中。文件只有一个选项:

<wpml-config>
    <custom-field action="translate">block_1</custom-field>
</wpml-config>

但无论我做什么,选项都不在上面的翻译管理检查图片中勾选。这里缺少什么?

缺少主选项键。应该是:

<wpml-config>
    <custom-fields> 
        <custom-field action="translate">block_1</custom-field>
    </custom-fields>
</wpml-config>
有关WPML语言配置文件的详细信息,请单击此处:


天哪,我没注意到那件小事。非常感谢