Good Day! I am having a hard time searching on how can this be done, I am still new to using Joomla! There is a similar approach like this in WordPress using PODS plugin where I can just call pods() class to get custom data anywhere in the template with ease.
Here is what I have, I created a new custom content called 'Team Member' and I have a custom template which is for Team Member Article and Team member has fields "Name", "Role", "Member Image", "Description", "Any other custom fields".
And what I want to do is list all articles which have team member category inside my custom template. It would be something like this:
articles->category == "team-member"
foreach articles as article
echo article->field("role")
echo article->field("member-image")
echo article->field("any-other-custom-fields")
end foreach
I hope someone could help me.
Thanks