First, thanks for the plugin! It really does open up a world of possibility.
My question: Can I use ACF’s built-in functions outside the loop? It seems as though I can’t – if I just drop a print_r(get_fields() ); into functions.php, I only get an array of empty key fields back – but I may be doing something wrong.
Thanks Elliot – I was just coming back to explain that I forgot to add the post_id to my example, but obviously it doesn’t affect the info from your first paragraph.
I have got a system working now, but maybe you could clarify something for me: Because of WP’s use of hooks (like in this case), if you want to work with variables between hooked functions, you basically have to assign them to global variables – is that correct, or is there a better way?
Hi Elliot, would you mind showing how the action on or later than ‘init’ approach would look like. I have a similar issue where I’m I’m using ACF in the function.php file and using cron jobs to trigger the function..