Thanks @galengidman this really helped after googling for a whole day my the main thing was my site was using ACF 4 had there were very few solutions for this
Something to note if anyone is having the same problem go to the above link but change the branch this link should take you to the correct location