Using Multiple Custom Posts with our Map Override
Written by the Divi Engine Documentation Team
Introduction
Follow these steps to use multiple custom posts with our map override.
Read First
At the moment Divi Machine does not allow you to use the map override feature on multiple post types. However, to make this possible we have created this document containing some PHP code that you will need to edit and insert into your WordPress functions.php file.
Step 1: Add PHP
Add the following code to your child theme functions.php file or by using a plugin like Plugin Snippets.
Step 2: Customize The Code - Arrays
You will need to make some changes to this code. In the array '$map_and_acf =' please add as many arrays as you need - we have added 3 in this code.
Step 2: Customize The Code - Slugs
Then change the 'cpt_slug' to be the custom post slug and the 'acf_field_slug' to be the ACF map field you have assigned to the custom post.
More Support?
Please email us at [email protected] if you are unable to get Divi Machine working.