How Can We Use The ACF Pro Plugin in Our Website
Posted By : Renu Yadav | 29-Oct-2018
The Advanced custom fields(ACF) pro plugin is very useful for creating the dynamic page without interfering the design of the page. Advanced custom fields pro plugin allows adding the custom extra fields. We can easily use the plugin in WordPress. After installing the plugin in your WordPress theme. Activate the ACF pro plugin in your theme.
The Advanced Custom Field’s pro plugin makes it very easy to display field data in your theme. There are many functions available in ACF pro plugin and all are well documented on the resources page. You can easily read it and apply on the pages.
For creating the dynamic page first go to the Custom fields option in admin panel. Click on the Add new option under Custom fields and type the name in the field group text field. Select the page template form the Location section and save it. After save it add the fields which you want to add like Title, Image etc. Any name you can type in the field. After entering the name and save it. Go to the Page section admin panel and Create the new page. Select the template from the template option and save it. You can see that you have the field in the bottom section of the page. In that field, enter the content. For access content in the template page. Use the name value form the custom fields to show the value in
In the above code you can see that banner_title is the name value in custom field and label is Banner Title. the_feild() is used for show the value in front page. For show the image get_feild('feild_name') is used.
If you want to show the data by the use of loop, you use the below code for it. As you can see that "Second List" is the label and second_list is the name value for showing the data in front page.