Documentation • Knowledge Base

Profile Photo

Table of Contents

Documentation • Knowledge Base

User Profile Photo

Retrieves user profile photo

Retrieves the user profile photo from the WordPress User Account. Dynamically changes by what user ID is called from the URL Parameter. Returns null or blank if user ID is not specified. Image should be uploaded from the back end of the user profile by the admin. Image can also be updated by the User when editing their profile. 

[xpx_user_photo]

Parameters

$size

(Default) The default image size is medium.

Usage

Description

Example: Single User Profile Photo

Structure

Output

Description

Media/photo file format. File should be in jpg format.

Description

LastName_FirstName_UserID

Example

Smith_John_25910328.jpg

User Profile Photo

Retrieves user profile photo

Retrieves the user profile photo from the Server. Get the photo from within The Resources Folder Structure, Resources > Photos > Profile-Photos.  Get the photo by the file name. Dynamically changes by what user ID is called from the URL Parameter. Returns null or blank if user ID is not specified. Image should be uploaded from the back end server into the correct folder.

[xpx_user_profile_photo]

Parameters

$size

(Default) The default image size is medium.

Usage

Field Label

Example: Single User Profile Photo

Structure

Example

File

Description

Media/photo file format. File should be in jpg format.

Description

LastName_FirstName_UserID

Example

Smith_John_25910328.jpg

Updated: [post_updated_day]

Menu