Title: Shortcode
Last modified: April 2, 2018

---

# Shortcode

 *  [OhNo](https://wordpress.org/support/users/lathisya/)
 * (@lathisya)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/shortcode-565/)
 * I tried implementing the Shortcode in php page template but it did not work
    
   the following shortcodes that I use:
 *     ```
       <?php
       $user_login = get_user_field('user_login'); # Username for the current User.
       $user_email = get_user_field('user_email'); # Email Address for the current User.
       $first_name = get_user_field('first_name'); # First Name for the current User.
       $last_name = get_user_field('last_name'); # Last Name for the current User.
       $full_name = get_user_field('full_name'); # First and Last Name for the current User.
       $display_name = get_user_field('display_name'); # Display Name for the current User.
       $avatar = get_user_field('avatar', 0, array('size' => 96)); # Avatar <img> tag.
       ?>
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-565%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/s2member/assets/icon-256x256.png?rev=980067)
 * [s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions](https://wordpress.org/plugins/s2member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/s2member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/s2member/)
 * [Active Topics](https://wordpress.org/support/plugin/s2member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/s2member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/s2member/reviews/)

 * 0 replies
 * 1 participant
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/shortcode-565/)
 * Status: not resolved