內容簡介
Option Page Addon for acf 是一款簡單而棒的外掛程式,它讓您可以使用進階自訂欄位(ACF)建立選項頁面,現在無需購買 Pro 版本即可建立選項頁面。
現在任何人都可以使用 option-page-addon-for-acf 和 ACF Free 版本建立自訂佈景主題。
請參閱我的 Upwork 個人檔案 https://www.upwork.com/freelancers/~018f06972fe4607ad0
(聯繫我進行任何類型的外掛程式自訂)
—>這裡提供免費的 Pro 功能。
使用此外掛程式新增自訂頁面選項的方法:
if( function_exists(‘acf_add_options_page’) ) {
acf_add_options_page(array(
'page_title' => 'Theme General Settings',
'menu_title' => 'Theme Settings',
'menu_slug' => 'theme-general-settings',
'capability' => 'edit_posts',
'redirect' => false
));
acf_add_options_sub_page(array(
'page_title' => 'Theme Header Settings',
'menu_title' => 'Header',
'parent_slug' => 'theme-general-settings',
));
acf_add_options_sub_page(array(
'page_title' => 'Theme Footer Settings',
'menu_title' => 'Footer',
'parent_slug' => 'theme-general-settings',
));
}
複製此代碼,並將其貼到您的子佈景主題的 functions.php 檔案中。
或者您可以按照 ACF 的官方說明進行操作。https://www.advancedcustomfields.com/resources/options-page/
安裝方式
您可以在 WordPress 的管理面板中從「外掛程式/新增」上傳 zip 檔案,或者解壓縮 zip 檔案並將其內容拖放到 WordPress 安裝的 wp-content/plugins/ 目錄,然後從外掛程式/安裝頁面啟用外掛程式。
外掛標籤
開發者團隊
原文外掛簡介
Option Page Addon for acf is a simple but fantastic addon that allows you to create option pages using advanced custom field(ACF) now Pro is not Needed for Create Option Pages.
Now Any one can create custom theme using option-page-addon-for-acf and ACF Free version.
Visit My Upwork Profile https://www.upwork.com/freelancers/~018f06972fe4607ad0
(Contact for any kind of Plugin Customization)
—>Pro Feature Free Here.
How to add Custom page Option using this plugin.
if( function_exists(‘acf_add_options_page’) ) {
acf_add_options_page(array(
'page_title' => 'Theme General Settings',
'menu_title' => 'Theme Settings',
'menu_slug' => 'theme-general-settings',
'capability' => 'edit_posts',
'redirect' => false
));
acf_add_options_sub_page(array(
'page_title' => 'Theme Header Settings',
'menu_title' => 'Header',
'parent_slug' => 'theme-general-settings',
));
acf_add_options_sub_page(array(
'page_title' => 'Theme Footer Settings',
'menu_title' => 'Footer',
'parent_slug' => 'theme-general-settings',
));
}
Copy this Code & Paste in your child theme’s function.php fle.
or you can follow official documentation of ACF.
Installazione
You can upload the zip file from Plugin / Add New, from the admin panel of your wordpress or Extract the zip file and drop the content into the wp-content / plugins / directory of your WordPress installation, then activate the Plugins page from Plugins.
