Is this right? When I go into the wp-admin I can’t find it.
Can some one help me out? I also tried adding in a setting for it in my app/helpers.php with the following: //add_filter('wp-content/plugins/advanced-custom-fields/settings/show_admin', '__return_false');
So i can hide it in the admin when I want to put it live…
You can’t use the composer.json file in the theme for this. You need to use something like Bedrock if you want to manage WordPress plugins via Composer
If you need something like ACF and are insistent on it being a theme dependency, Carbon Fields offers a lot of the same functionality and can be included through your theme’s composer.json.
I used it on a couple projects, although I’ve gone back to using ACF lately, partly because it’s what everyone else at the agency where I work uses. It works on a slightly different paradigm, and isn’t quite as “plug-and-play” as ACF, but it’s very flexible and pretty nice to work with once you get the hang of it. The biggest thing I missed from ACF when I was using it was “flexible” fields, which it didn’t really have an analog for at the time. I’d recommend checking it out, though.
I use this: https://github.com/PhilippBaschke/acf-pro-installer
Which downloads ACF in my theme dir, then with build script I copy ACF to ‘/lib/acf’ dir in my theme folder and I load ACF from there.
Works well for me this way.
Carbon Fields has both repeater & flexible content fields, they are called ‘complex fields’. CF has just about everything ACF does and is way more efficient to work with.