I'm using Safecracker Registration so I can leverage Channels for my member data. When the member is logged in (in my own UI, not EE's CP), is there a way for me to get the entry id in the Channel that's associated with the member?
My idea is to do a search like:
{exp:channel:entries channel="profiles" author_id="CURRENT_USER"}
{entry_id}
{/exp:channel:entries}
Presumably, there will only be one entry_id
. And although this may work, I'm reluctant to use this approach because I'll need to loop through this exact same channel several times on that page (e.g. in the header, in the footer, etc.) as my templates are broken up into parts for reusability.
I'm hoping for a non-Stash solution at this point. Suggestions?