PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

How to add custom fields to an Author page

s2Member Plugin. A Membership plugin for WordPress®.

How to add custom fields to an Author page

Postby Sim2K » October 13th, 2011, 8:58 am

These 2 worked for me on my Author page!

Code: Select all
<?php echo get_user_field('Contact_Number', $author); ?>
<?php echo get_user_field('Contact_Number', get_the_author_meta( 'ID' )); ?>


"Contact_Number" is a Custom Field I made to hold a telephone number.
I made that in 'General Options', 'Registration/Profile Fields and Options' and then 'Add new Field'

Admin, please correct if wrong but this worked OK for me.
User avatar
Sim2K
Registered User
Registered User
 
Posts: 6
Joined: August 19, 2011

Re: How to add custom fields to an Author page

Postby Eduan » October 13th, 2011, 9:01 am

Okay thanks for the info.
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests

cron