Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

First post! I've got an issue I can't fix, being a designer rather than programmer. Hopefully someone can help.

I'm using an old plugin for custom login pages: http://wordpress.org/extend/plugins/custom-login-pages/ I've edited it before to do a bespoke message through WP with Smart Blocks of text. The only problem is I can get a unique message for WP Login pages for the Login and Register pages but not for the Lost Password page.

This is the bit of code I'm tweaking but the Lost Password page shows all three smart blocks of text. How can I modify this to only show the one I want?

echo '<ul id="clnav">'."\n";
if (isset($_GET['action']) && $_GET['action'] != 'login')
                echo do_shortcode('[smartblock id=883]');"\n";
            if (get_option('users_can_register') && $_GET['action'] !=     'register')
            echo  do_shortcode('[smartblock id=881]');"\n";
            if (get_option('users_can_register') && $_GET['action'] !=    'lost_password')
            echo  do_shortcode('[smartblock id=3669]');"\n";
echo '</ul>'."\n";
}

The full code is rather long but can be downloaded from WP in the above link - the bit above is line 150ish.

Thanks, Nicko.

share|improve this question

closed as too localized by toscho Jul 20 '12 at 23:51

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.