I’m trying to follow this tutorial.
But instead of using PDF I would like to use ZIP.
I replaced this line:
$supported_types = array('application/pdf');
$supported_types = array('application/zip, application/x-compressed-zip');
and even if I upload an actual ZIP file the error message still pops up.
Here is a pastebin of my custom post type and meta box etc.
I have tried to google the issue and tried to rephrase my questions the best way I can but I still have not found a solution :/
It’s clear I am no professional so people might suggest I use a plug-in but I would actually like to use my functions.php file instead of the plug-ins…
Could anyone please point me in the right direction?
All help appreciated !