Hi, and thank you for reply!
Yes, when i put post ID, i get result, it works.
But without ID it does not work.
But i am using Exec-PHP plugin for inserting php in wordpress and i think it’s the problem with that plugin since the code works in normal php file.
Thank you very much!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users