Title: Shortcode not working
Last modified: August 21, 2016

---

# Shortcode not working

 *  Resolved [mirgcire](https://wordpress.org/support/users/mirgcire/)
 * (@mirgcire)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/shortcode-not-working-41/)
 * This is brilliant plugin. It does exactly what I want, except I am having trouble
   getting it configured.
 * After I verified that the NLW widget works on a side panel, I dragged the NLW
   widget to the NLW shortcode panel, configured and saved it. Then I added it to
   my page header in a child theme
 * `<?php echo do_shortcode('sp-login-shortcode'); ?>`
 * This didn’t work. All I can see is “sp-login-shortcode” at the top of my page.
 * So I tried to put the short code directly into one of my posts, but that didn’t
   work either. All I could see was “[sp-login-shortcode]”.
 * Any suggestions about how to make this work?
    Thanks!
 * [http://wordpress.org/plugins/nice-login-register-widget/](http://wordpress.org/plugins/nice-login-register-widget/)

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

 *  Plugin Author [sgPlanwize](https://wordpress.org/support/users/sgplanwize/)
 * (@sgplanwize)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/shortcode-not-working-41/#post-4349826)
 * Hi mirgcire,
 * Try this:
    `<?php echo do_shortcode('[sp_login_shortcode]'); ?>`
 *  Thread Starter [mirgcire](https://wordpress.org/support/users/mirgcire/)
 * (@mirgcire)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/shortcode-not-working-41/#post-4349863)
 * Thanks for the quick response.
    Sadly, it does not help much. Now I am seeing:[
   sp-login-shortcode] at the top of the page.
 * Actually I have the same problem on my development site.
    I tried different settings
   for both the shortcode widget and the sidebar widget. Everything works great 
   on the sidebar, but it looks like the shortcode widget is failing to register
   the shortcode.
 * You can see for yourself at lightningmandarin.com
 *  Thread Starter [mirgcire](https://wordpress.org/support/users/mirgcire/)
 * (@mirgcire)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/shortcode-not-working-41/#post-4349901)
 * My bad. Now I see that your suggestion was to correct two problems:
    1) I forgot
   the square brackets 2) I used dash instead of underscore
 * When I correct both of those problems at the same time the short code works.
 * Thanks!

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

The topic ‘Shortcode not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nice-login-register-widget_e4e4e4.
   svg)
 * [Nice Login Widget](https://wordpress.org/plugins/nice-login-register-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nice-login-register-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nice-login-register-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/nice-login-register-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nice-login-register-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nice-login-register-widget/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mirgcire](https://wordpress.org/support/users/mirgcire/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/shortcode-not-working-41/#post-4349901)
 * Status: resolved