Advanced Custom Field with which we can select Ninjaforms., (*1)
Finally the Advanced Custom Fields: Ninjaforms Add-on is available on the WordPress plugin repository!, (*2)
Getting started
The plugin is available from the WordPress plugin repository, (*3)
- Upload the plugin files to the
/wp-content/plugins/acf-ninjaforms-add-on
directory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the 'Plugins' screen in WordPress
- Use the Settings->Plugin Name screen to configure the plugin
- (Make your instructions match the desired user flow for activating and installing your plugin. Include any steps that might be needed for explanatory purposes)
You can also install Advanced Custom Fields: Ninjaforms Add-on trough composer, (*4)
composer require dannyvanholten/acf-ninjaforms-add-on
, (*5)
or if you make use of WPackagist, (*6)
composer require wpackagist/acf-ninjaforms-add-on
, (*7)
To use the the field you just need to know how advanced custom fields work. You can check out their documentation, (*8)
The Ninjaforms Add-on returns either an single form object / id or an array of objects / id's
Now we know that we can easily use it to build our fields :), (*9)
If you return an ID
$form = get_field('my-form');
Ninja_Forms()->display($form);
If you return an Object
$form = get_field('my-form');
Ninja_Forms()->display($form->get_id());
$forms = get_field('my-form');
foreach($forms as $form) {
Ninja_Forms()->display($form);
}
Getting involved
Want to get involved and improve Advanced Custom Fields: Ninjaforms Add-on? Fork this repo and whenever you have something just make a pull request. After review we might add it to the ACF Ninjaforms Add-On GitHub Repository., (*10)
Getting ahead
As Ninjaforms & Advanced Custom Fields are continuously in development we like to take a look ahead together for what's coming. If you want to get involved developing Advanced Custom Fields: Ninjaforms Add-on you can ask us if you can implement some of the features yourself., (*11)
- [x] Add dutch translations
Credits
This plug-in is based on the ACF Gravityforms Add-On, (*12)