ExpressionEngine 2024 Quarter 1 Review Quarter 1 Review
Hello,
You should be able to easily show that information from within your {exp:channel:entries} tag using the following code:
{exp:member:custom_profile_data username="{author}"}
{age}, {gender}
{/exp:member:custom_profile_data}
The Documentation for this can be found here:
https://docs.expressionengine.com/latest/member/custom-profile-data.html
R
Hi Russ,
Thanks for the help. However, the username=”{author}” parameter didn’t show anything. I removed and using {exp:member:custom_profile_data} tag inside of {exp:channel:entries} tag pulls up the right information. However it only shows the data to logged in users, which is fine for my application.
Displaying the author’s first name: css Copy {author_custom_field:first_name} Displaying the author’s last name: css Copy {author_custom_field:last_name} Displaying the author’s company: css Copy {author_custom_field:company} Displaying the author’s job title: css Copy {author_custom_field:job_title} These tags will output the corresponding custom field values for the author of the current entry. mapquest driving directions
Hi Viktor,
To display member custom fields in your template, you’ll need to use EE’s tag pair functionality to pull in the author’s data. For more tips, explore Pokerogue and the Pokerogue wiki . Good luck!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.