# Display sign in with Discourse link on wordpress php template

**URL:** https://meta.discourse.org/t/display-sign-in-with-discourse-link-on-wordpress-php-template/61268
**Category:** WordPress
**Created:** [April 19, 2017, 5:16pm UTC](https://meta.discourse.org/t/display-sign-in-with-discourse-link-on-wordpress-php-template/61268 "2017-04-19T17:16:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Vocino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vocino/32/85136_2.png) [@Vocino](https://meta.discourse.org/u/Vocino)
#### Post date: [April 19, 2017, 5:16pm UTC](https://meta.discourse.org/t/display-sign-in-with-discourse-link-on-wordpress-php-template/61268/1 "2017-04-19T17:16:38Z")

</div>

How can I display the _result_ of the `[discourse_sso_client login='Login Through the Forum']` shortcode in a php template in wordpress? That is to say, this is a template not represented by a page or post but a raw php/html template.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [April 19, 2017, 7:11pm UTC](https://meta.discourse.org/t/display-sign-in-with-discourse-link-on-wordpress-php-template/61268/2 "2017-04-19T19:11:07Z")

</div>

You can use the shortcode in a template either by calling `do_shortcode` or by directly calling the function that’s used to create the shortcode content.

either:

```plaintext
<?php echo do_shortcode("[discourse_sso_client login='Login Through the Forum']"); ?>

```

or:

```plaintext
<?php echo discourse_sso_client_shortcode( array( 'login' => 'Login Through the Forum' ) ); ?>

```
