這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

ACF WPML Theme Options

外掛說明

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.

安裝方式

  1. Upload and activate plugin to your WP installation
  2. Go to Settings -> ACF WPML Theme Options
  3. Replace the default name of the Custom Post Type to be added (default is Global Settings) and save. (don’t worry if the new Custom Post Type doesn’t appear. You can click on the link which appears at the top in the body of the notification or simply refresh the screen or navigate to another page. The custom post type should appear afterwards).
  4. Create a post of the newly acf_wpml_to post type, save it and set it as active. You will be guided through the entire process by the notifications which appear at the top of the screen.
  5. In ACF / ACF Pro, create a new field group, add a few options and assign it to your post type (for ACF -> Post Type = acf_wpml_to; for ACF Pro -> Post Type = the name you chose in step #3 above).
  6. You’re good to go. Don’t forget to translate the acf_wpml_to posts you create in order to benefit of the full functionality of this plugin. (you will be nagged by a warning notification until you do that) 🙂

Check the video tutorial for installation and usage on the plugin’s website

常見問題集

Installation Instructions
  1. Upload and activate plugin to your WP installation
  2. Go to Settings -> ACF WPML Theme Options
  3. Replace the default name of the Custom Post Type to be added (default is Global Settings) and save. (don’t worry if the new Custom Post Type doesn’t appear. You can click on the link which appears at the top in the body of the notification or simply refresh the screen or navigate to another page. The custom post type should appear afterwards).
  4. Create a post of the newly acf_wpml_to post type, save it and set it as active. You will be guided through the entire process by the notifications which appear at the top of the screen.
  5. In ACF / ACF Pro, create a new field group, add a few options and assign it to your post type (for ACF -> Post Type = acf_wpml_to; for ACF Pro -> Post Type = the name you chose in step #3 above).
  6. You’re good to go. Don’t forget to translate the acf_wpml_to posts you create in order to benefit of the full functionality of this plugin. (you will be nagged by a warning notification until you do that) 🙂

Check the video tutorial for installation and usage on the plugin’s website

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈ACF WPML Theme Options〉的開發相關工作。

參與者

將〈ACF WPML Theme Options〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄