Title: Create two different shortcodes
Last modified: September 24, 2023

---

# Create two different shortcodes

 *  Resolved [webfantastic](https://wordpress.org/support/users/webfantastic/)
 * (@webfantastic)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/create-two-different-shortcodes/)
 * Hi! I want to allow users to log in to the site via Telegram.
   I need to create
   two shortcodes:
 * one for login only,
 * and the second shortcode that will allow them to register.
 * Thus, I will place one button in the account so that they can link their telegram
   in the profile, and I will make the other button only for logging in to the public
   part. Since registration via telegram does not allow you to request the user’s
   email and phone number, and these are the parameters I need.
   How to make two 
   different shortcodes?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Irshad Ahmad](https://wordpress.org/support/users/irshadahmad21/)
 * (@irshadahmad21)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/create-two-different-shortcodes/#post-17074417)
 * It is not possible to collect email or phone number during Telegram login.
 * Here are some options for you:
    1. When using Telegram login, you can redirect users to some profile/account page
       to let them update their email and phone number.
    2. Disable registration via Telegram and only allow to connect it on the account
       page. You can do so by adding the shortcode to the account page and turning 
       ON the “Disable Sign up” option on the plugin settings page. This way the button
       on the login page will not allow them to register.

Viewing 1 replies (of 1 total)

The topic ‘Create two different shortcodes’ is closed to new replies.

 * ![](https://ps.w.org/wptelegram-login/assets/icon-256x256.png?rev=2483013)
 * [WP Telegram Login & Register](https://wordpress.org/plugins/wptelegram-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wptelegram-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wptelegram-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wptelegram-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wptelegram-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wptelegram-login/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Irshad Ahmad](https://wordpress.org/support/users/irshadahmad21/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/create-two-different-shortcodes/#post-17074417)
 * Status: resolved