Title: Widget version
Last modified: August 30, 2016

---

# Widget version

 *  [robvgr](https://wordpress.org/support/users/robvgr/)
 * (@robvgr)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/widget-version-1/)
 * I’m trying to put the login box in a widget that appears in the sidebar throughout
   the site, but it doesn’t seem to be working properly. Here is the code I’m using(
   with 121 being the parent page ID for the child page that is password protected):
 * `[smartpwpages parent=\"121\"]`
 * When I try to log in on any page other than the parent page, I receive the “You’ve
   entered an invalid password.” error message.
 * Any suggestions for a fix? My understanding is that this was possible as of version
   2.0 of the plugin. Thanks!
 * [https://wordpress.org/plugins/smart-passworded-pages/](https://wordpress.org/plugins/smart-passworded-pages/)

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

 *  [Matt](https://wordpress.org/support/users/mtthwbckmn/)
 * (@mtthwbckmn)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/widget-version-1/#post-6717436)
 * Robvgr,
    I too was looking for a way to do accomplish what you’re doing. It seems
   that the plugin developer wrote up the wrong shortcode for running it properly.
   You’ll need to remove any backslashes ( \ ) from the shortcode. Your code would
   actually be:
 * `[smartpwpages parent="121"]`
 * This allows it to run anywhere on the site. Hope this helps.
 * Matt
 *  Thread Starter [robvgr](https://wordpress.org/support/users/robvgr/)
 * (@robvgr)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/widget-version-1/#post-6717467)
 * That worked perfectly. Thanks!

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

The topic ‘Widget version’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/smart-passworded-pages.svg)
 * [Smart Passworded Pages](https://wordpress.org/plugins/smart-passworded-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-passworded-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-passworded-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-passworded-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-passworded-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-passworded-pages/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [robvgr](https://wordpress.org/support/users/robvgr/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/widget-version-1/#post-6717467)
 * Status: not resolved