This single template for Genesis includes code snippets which enable you to print different ACF field types including :
- Google Maps
- Checkbox values with icons
- Wysiwyg Editor content
- Text fields
This is what the template produces :
And here’s the edit screen :
The template also includes a custom sidebar using Genesis Simple Sidebars with the i.d accomodation-sidebar
There’s 3 simple steps :
Step 1 : From the download folder, copy & paste the PHP code from the functions file to the end of your functions file. Change all instances of accomodation in the code to match your CPT name.
Step 2 : From thew download folder, upload the file named single-accomodation.php and map.php to your child themes root directory. Rename the single-accomodation.php file to match the name of your custom post type. i.e single-cpt.php.
Step 3 : Line 16 of map.php, swap out the Google API key with your own.
The ACF fields export file is also included in the download folder which you can import using ACF Pro
Register or login to access the download folder for members :
Leave a Reply
You must be logged in to post a comment.