I have a Global Set called "Settings" (handle = 'settings'); Within that I have a text field called "Address" (handle = 'address').
I have a function in my Plugin and I'd like to get the Address data.
In the front-end I would write this:
{{ settings.address }}
How can I get the same information in my plugin with PHP?
I've got as far as this:
$address = craft()->elements->getCriteria(ElementType::GlobalSet);
When I var_dump this array, I can see the address string. But I can't figure out how to filter down to the address correctly.
Thanks