mcguffin / acf-customizer Goto Github PK
View Code? Open in Web Editor NEWUse ACF Fields in WordPress Customizer
License: GNU General Public License v3.0
Use ACF Fields in WordPress Customizer
License: GNU General Public License v3.0
( ! ) Warning: The magic method ACFCustomizer\Core\Singleton::__wakeup() must have public visibility in wp-content/plugins/acf-customizer/include/ACFCustomizer/Core/Singleton.php on line 43
Hi! First off, obsessed with the plugin!
I'm experiencing one issue. I have some fields that are located in the customizer and an ACF options page. When the fields are filled out in the customizer, saved, and then the customizer is refreshed or opened again, the responses to those fields don't appear. So it looks like they haven't been filled out. The fields are saved in the options page, but it's somewhat confusing for users.
Any ideas why this would be happening? Thank you!
I'm not sure on which version exactly it stopped working, but it seems like Customizer is not showing up in the Field Group location rules any longer. Does anyone else have this issue?
I just updated to 5.9 and my customizer fields don't work any longer. Any chance you're still developing this plugin? 😀
Hi. This plugin is amazing but it seems to me that ACF Color Picker is not working / updating CSS variables when defined options page:
I am getting the field value like this
$primary_color = get_field('primary_color', 'option');
And assigning it like this
:root { --primary-color: {$primary_color}; }
However, it works if I change the color in the Options Page itself.
What can I do for ACF Color Picker to work in the Customizer?
Thanks.
Also, bundling with theme seems to work just fine using:
include_once(get_stylesheet_directory() . '/paht-to-plugin/acf-customizer/index.php');
Originally posted by @ermincelikovic in #7 (comment)
I was wrong - unfortunately bundling ACF Customizer with theme does not work.
While the panels are displayed in customizer, they are empty (no fields inside).
Any tips?
Hi, can you share full sample code to use this plugin? I get error "Call to undefined function acf_add_customizer_panel" after I paste example code from wiki.
Hi,
I've create the following customizer section
function AcfCustomizerSections() {
$panel_id = acf_add_customizer_panel(array(
'title' => 'Content',
));
acf_add_customizer_section(array(
'title' => 'ACF Gallery',
'storage_type' => 'post',
'panel' => $panel_id,
));
}
add_action( 'init', 'AcfCustomizerSections', 20);
and I've created a field group named Gallery settings
with the following location rules
Where Gallery
is a custom post type.
I noticed that, when I save changes in customizer, Gallery settings
field group is saved into the database even if current previewed page does not meet the location rules of the Gallery settings
field group.
I think that this should be prevented and that the entire field group should be hidden in customizer, if the current previewed page does not satisfy the location rules of that field group.
When Advanced Custom Fields plugin is bundled with theme, acf-customizer does not work.
I'm not sure if this is something solvable?
While on the topic, is it possible to bundle acf-customizer with theme too?
Not working if acf_add_customizer_section array has another language title key
acf_add_customizer_section(array(
'title' => 'Новогодние праздники',
'storage_type' => 'option',
'panel' => $panel_id,
));
Wiki link in Readme is broken
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.