Skip to content

imranhsayed/acf-guten-blocks

Repository files navigation

ACF Guten Blocks

This plugin creates Gutenberg blocks using ACF

Getting Started 📋

These instructions will get you a copy of the project up and running on your local machine for development purposes.

Prerequisites 🚪

You need to have any WordPress theme activated on your WordPress project, which has ACF Pro Plugin installed and activated.

Installation 🔧

  1. Clone the plugin directory in the /wp-content/plugins/ directory, or install a zipped directory of this plugin through the WordPress plugins screen directly ( also remove the -master from the plugin directory )
  2. Activate the plugin through the 'Plugins' screen in WordPress

Use 🎿

  1. Click on Custom Fields menu item on WordPress dashboard.
  2. Create a new Field group called Testimonial and add below fields
  • Testimonial ( type: text )
  • Author ( type: text )
  • Role ( type: text )
  • Image ( type: image )
  • Background Color ( type: text )
  • Text Color ( type: text )

  1. Add a new post and select the block called Testimonial
  2. Add the values from the of the above custom fields using control panel on the right.
  3. Now you will be able to see the content of your block template written in php inside the block.

You can also add the values of custom field by clicking on the inspector control edit icon, in the block.

Contributing 👥

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

I use Git for versioning.

Author 📝

License 📄

License: GPL v2