Hi @ckaden
To understand what is wrong with your code, it is recommended to debug it line by line to check whether it is returning the expected data. Please take a look at the debugging tutorial on this page: https://www.advancedcustomfields.com/resources/debug/