
內容簡介
ACF WPML Theme Options 可以讓您使用另一種方式來顯示由 ACF 定義並使用 WPML 翻譯的佈景主題選項欄位,讓您避免在翻譯過程中出現任何問題。
告別在您的主題選項頁面中添加字段slug前綴,並基於ICL_LANGUAGE_CODE顯示它以及其他解決方案,讓您正確運作。
它不必在翻譯的 ACF 選項頁面上執行查詢,而是允許您將自定義字段分配給自定義文章類型,並使用單個函數在您的插件和主題中顯示字段。
在正確配置並滿足所有要求之後,您可以通過調用 get_field_option(‘option_name’) 或觸發它作為短碼 [get_field_option option=”option_name”] 來使用它 - 此功能使您能夠在帖子和頁面內容中顯示選項。
插件依賴於 ACF 或 ACF Pro 和 WPML。 但是,如果您正在運行同時啟用 ACF 和 ACF Pro 的網站,它將無法正常工作。
外掛標籤
開發者團隊
原文外掛簡介
ACF WPML Theme Options allows you to use another way of displaying Theme Options fields defined with ACF and translated with WPML allowing you to avoid any kind of problems in the translation process.
Say goodbye to adding prefixes for field slugs in your Theme Options pages and displaying it based on ICL_LANGUAGE_CODE and to other workarounds to make it work properly.
Instead of performing queries on translated ACF options pages, it allows you to assign custom fields to a custom post type and display the fields in your plugins and themes with a single function.
After it is properly configured and all the requisites are met, you can use it by calling get_field_option(‘option_name’) or by triggering it as a shortcode [get_field_option option=”option_name”] – this feature allowing you to display options inside your posts and pages content.
The plugin is dependent on ACF or ACF Pro and WPML. However, it will not work if you are running a website which has both ACF and ACF Pro enabled at the same time.
