ACF Field Integration with Ninja Table Column
The latest version of Ninja Tables plugin comes up with some dynamic features that enhance your table creation capacity. One of the latest components of the plugin is ACF Feilds. Here ACF stands for Advanced Custom Field that would allow you to make your table more dynamic in particular. You will get the feature using WP Post feature of Ninja Tables.
With Ninja Tables’ built-in WP Post feature, you can fold up your WordPress page, post, woo-commerce products in a tabular format without installing any other add-ons like other plugins. Advanced Custom Field(ACF) feature is one of the dynamic features of Ninja Tables.
What is ACF
ACF stands for Advanced Custom Fields that helps you, as a developer, to take an advantage of these custom fields. Basically, it is used to manage user’s custom field information and present it to your website’s visitors.
In practical, you can add customized data to not only posts and pages, but also categories, taxonomies, custom posts, custom taxonomies, users, attachments, comments, and so on without writing any code.
Here, now, I am showing how practically it works using Ninja Tables plugin.
First of all, to make this happen, you need to install another plugin named Advanced Custom Fields plugin from WordPress directory. Then click on the plugin icon from the left sidebar of the dashboard.
From the plugin dashboard, click on the Add New button. Then provide the title of the new field group and click on the Add Field button. Provide the Field Label and Field Name in the input field. Next, make it published clicking on the Publish button.
Then a field group will be created, you can add new, or edit, move, and delete the existing one.
Now, you will see a new field group has added to the plugin dashboard.
Then move over to the post you want to display your custom field using ACF.
Then, from the post page, right under the post section, you will find the custom field with an input field. Put the value you want to display on your table on that input field. Then, after putting the value click on the update button of the post page.
Next, move to the Ninja Tables plugin and click on the post table created using WP Post option. Click on the edit icon of the post table from the plugin dashboard.
Then you will be taken to the table interface, next, click on the Add Column icon.
You will find an internal page section will expand with its option. From there you need to provide all the necessary information. Then you will have Dynamic Post Data Settings option.
In this part, you will find the Field Type option, there will be a drop-down menu. From there, choose the
[Note that in the Field Value input field, provide the value name according to your created Field Group in the Advanced Custom Fields plugin dashboard.]
Then, if you click on the preview button, you will see that a new custom column has added to the table with its value.
This is how you can use the Advanced Custom Fields(ACF) option of Ninja Tables plugin.