Title: Shortcode for a User template
Last modified: December 10, 2023

---

# Shortcode for a User template

 *  Resolved [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * (@jordiwordpress)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-for-a-user-template/)
 * I have created a user pod extension and a template, so each user has their own
   private website. I would like the user, once logged in, to have access to their
   private website. I have tried to do it with a shortcode from a page linked from
   a navigation menu.
 * With this shortcode display the template with no user information (obviously),
   but if where=”id = {@user.id} is included display “Pods embed error: Please provide
   a Pod name”
 *     ```wp-block-code
       [pods template="Usuarios" [/pods]
       ```
   
 * With this shortcode display “Pods embed error: Pod not found”
 *     ```wp-block-code
       [pods name=”user” template="Usuarios" where=”id = {@user.id}][/pods]
       ```
   
 * Can this be done with a shortcode?
 * Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [pdclark](https://wordpress.org/support/users/pdclark/)
 * (@pdclark)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-for-a-user-template/#post-17266573)
 * Capitalize ID and user.ID
 *  Plugin Support [pdclark](https://wordpress.org/support/users/pdclark/)
 * (@pdclark)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-for-a-user-template/#post-17266575)
 * And name=”user” needs to be dumb straight quotes not curly smart quotes.
 *  Plugin Support [pdclark](https://wordpress.org/support/users/pdclark/)
 * (@pdclark)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-for-a-user-template/#post-17266582)
 * And in your where attribute, it also needs to be dumb quotes and you are missing
   the closing quote before ]
 *  Plugin Support [pdclark](https://wordpress.org/support/users/pdclark/)
 * (@pdclark)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-for-a-user-template/#post-17266589)
 * So your complete shortcode would be:
 *     ```wp-block-code
       [pods name="user" template="Usuarios" where="ID = {@user.ID}"][/pods]
       ```
   
 * And in order to use `{@user.ID}` in a WHERE query, `define( 'PODS_SHORTCODE_ALLOW_EVALUATE_TAGS',
   true );` will need to be added to `wp-config.php`
 * So in summary:
    - `”` is not the same character as `"`. In almost all cases, computer languages
      use the second version. The first is a typographic character with a curve.
    - `id` is not the same as `ID`. The WordPress database schema almost always 
      uses `ID` unless it is a longer word, like `post_id`. See the [WordPress Database Schema](https://codex.wordpress.org/Database_Description).
    - Just like in HTML, opening and closing quotes and brackets need to be matched.
      Every opening `"` must have a closing `"` and every opening `[` must have 
      a closing `]`.
 *  -  This reply was modified 2 years, 3 months ago by [pdclark](https://wordpress.org/support/users/pdclark/).
 *  Thread Starter [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * (@jordiwordpress)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-for-a-user-template/#post-17267238)
 * perfect, thanks

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Shortcode for a User template’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [template](https://wordpress.org/support/topic-tag/template/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * 5 replies
 * 2 participants
 * Last reply from: [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-for-a-user-template/#post-17267238)
 * Status: resolved