How to Add ACF Fields to the Event Dashboard
Do you want to collect extra data from event organizers when they submit events via the frontend dashboard? You can easily do this by integrating Advanced Custom Fields (ACF) with the Eventin frontend dashboard.
✅ Prerequisites
- Eventin plugin installed and activated.
- ACF (Advanced Custom Fields) plugin installed and activated.
- You are using the Eventin frontend event submission form (via shortcode)
Steps to Add ACF Fields:
1. Create a Field Group in ACF
- Go to Field Group > Add New.
- Create a field group and add your desired fields (e.g., text, image, select, checkbox).
- Example: "Event Extra Info" with fields like "Short Details", "Zoom Link", etc.
Set Display Rules
- Under "Location", choose: Post Type is equal to Event
2. Create shortcode
Add the code inside your theme’s functions.php file or using any code snippet plugin to enable “custom_acf_field” shortcode in your system.
- create a shortcode to get the response based on post type.
- Example: "Text", "Image", "File", etc
function display_custom_field_callback($atts) { global $post; $field_name = isset($atts['field']) ? $atts['field'] : ''; if ($field_name) { return get_post_meta($post->ID, $field_name, true); } return ''; } add_shortcode('custom_acf_field', 'display_custom_field_callback');
⚠️ Important: The way you display the field on the frontend will depend on the type of ACF field you use — such as Text, Image, File, etc. The corresponding shortcode or PHP function will change based on the field type.
3. Add shortcode to your events
- Edit the event and add the shortcode
[custom_acf_field field="short_details"]
custom_acf_field
is the shortcode name and theshort_details
is the field name we created in step 1
- Save the event and then go to the Additional page option and click SEO meta button.
This will open the layout to add your field details
- Add the description and click on the save button
Here is the output below ⬇️
Video Tutorial
Watch the full step-by-step video guide here: