Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
- Make sure your
Local by FlyWheelWordPress install is a custom install
Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
Local by FlyWheel WordPress install is a custom install| <?php | |
| // Check the gallery field (created with ACF PRO) for images | |
| $images = get_field('images'); | |
| if( $images ) : | |
| // If it does have images: | |
| // Create variable for download file | |
| // This uses a /downloads/ directory and the page title as the file name | |
| $destination = 'downloads/' . sanitize_title( get_the_title() ) . '.zip'; | |