We'll create fresh WordPress site with Blocks for CiviCRM installed. You have 20 minutes to test the plugin after that site we'll be deleted.
CiviCRM uses shortcode in order to insert dynamic content into WordPress pages, such as Petition, Survey, Contribution form, Membership…
As mentioned into the CiviCRM documentation:
“Currently there is no specific CiviCRM block for Gutenberg so there is no interactive way to see the options available for the shortcode.
You will need to know the format and look up IDs and options in CiviCRM before creating the shortcode in WordPress.”
Knowing an object ID is not very convenient. So we’ve made a plugin which uses the CiviCRM API to get and display all attributes for the shortcode, directly in a simple block.
This way, embedding CiviCRM content into any WordPress page becomes a child’s play!