Jump to content

How do I show profile field of author in pages


Ohio Guns

Recommended Posts

I'm trying to get the custom profile field for a section called about me to appear in pages. 

Im trying to make an "About the author" section at the end of the articles and would like to pull the post authors info.  I've got everything else I need just can't figure this one out. 

Thanks

Link to comment
Share on other sites

It's a bit tricky to work with customFields in IPS 4, unfortunately. 

You would have to do something along the lines of: $member->profileFields()["core_pfieldgroups_1"]["core_pfield_2"];

You would have to figure out the actual IDs in your case yourself. The first is the ID of the profile field group, while the second is the ID of the profile field itself. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...