Tagged: Author Page, enfold, meta data
Hi,
I have a membership site (using S2 membership & AMR users plus plugin) where members who are logged in can view a membership directory list with select info like name, email & phone number. Then, you can click on a member profile and it directs to the established Enfold theme author page.
On the author page, I see the Gravatar image, Member name, And Bio field (description). I see these items being called and filtered in the loop-about-author.php
I am trying to add more of the meta data info about the author to this page. In the edit user page in the back end, the S2 membership profile fields show up – stuff like: company name, preferred mailing address, home address, profession category, birthday, etc
I would like to add the entire list of meta data from S2 to the author page (maybe leave out the birth year data). I need a little help with the code for that and where to place it.
Thanks for your help!
For example, some of those field’s meta names (hooks?) are things like:
Wp_S2m_Birth_Month
Wp_S2m_Company_Name
Wp_S2m_Cell_Phone_Number
I think I have resolved this on my own.
In the loop-about-author.php file I have added code similar to the following:
$company_name = get_user_field(‘company_name’);
$company = __(“Company:”,’avia_framework’) .” “. $author_company;
<p class=’author-company’>{$company}</p>
I will have to do a similar code for each item I want to be displayed. But, it seems to be working.