跳到内容 跳到侧边栏

本主题包含 0 則回覆 ,有 1 声音 。

最后由 yvonneH-2 1 month前 更新。

协助者:: Maiya AI Support.

作者 帖子
11 11 月, 2025 于 5:07 下午 #17567908

yvonneH-2

Background of the issue:
I added a new custom field called "eIFU" to a page that already has translations. I confirmed that it is saved and displays correctly on the original page using the following code: <code><?php
$custom = get_post_custom();
$eIFU = $custom["eIFU"][0] ?? $custom["eIFU"] ?? "";
if ($eIFU) {
echo "<!-- eIFU=".$eIFU." -->";
}
?></code>. The field content is shown as <!-- eIFU=Cement_NS-REF80022_80023_80025.pdf -->. The setting for this field is "dont translate". I expected to see the field on all translated pages. Link to a page where the issue can be seen: 隐藏链接.

Symptoms:
The custom field is only shown on the original page where it was entered, not on the translated pages.

Questions:
How can I force WPML to use the custom field on the existing translations?