Title: Shortcode, how to have error message
Last modified: September 4, 2016

---

# Shortcode, how to have error message

 *  Resolved [jacquesmivi](https://wordpress.org/support/users/jacquesmivi/)
 * (@jacquesmivi)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-how-to-have-error-message/)
 * Hello,
 * I use the shortcode “wppb-login” to a php template.
    When I don’t fill a field,
   I got the message “ERROR: password field is empty.”
 * But when I write a wrong username or password I don’t have any message. My page
   just reload.
    So it’s litle bite disturbing, user don’t know if it’s a bug or
   an error.
 * How can I activate a message like “Username or password incorect”.
 * Thanks for your help,

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

 *  Plugin Author [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * (@raster02)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-how-to-have-error-message/#post-8138697)
 * Hello there,
 * Thank you for contacting us.
 * Could you post a link to your website so I can check this error out ?
 * Best Regards.
 *  Thread Starter [jacquesmivi](https://wordpress.org/support/users/jacquesmivi/)
 * (@jacquesmivi)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-how-to-have-error-message/#post-8138701)
 * Hello,
 * Here is a link
    [https://www.viviarto.com/votre-compte-viviartiste/](https://www.viviarto.com/votre-compte-viviartiste/)
 * Thanks,
 *  Thread Starter [jacquesmivi](https://wordpress.org/support/users/jacquesmivi/)
 * (@jacquesmivi)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-how-to-have-error-message/#post-8166823)
 * Hello,
 * Do you have an idea regarding this topic ?
 * Thanks,
 *  [Teodor Cosofret](https://wordpress.org/support/users/teodor-cosofret/)
 * (@teodor-cosofret)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-how-to-have-error-message/#post-8177937)
 * Hi,
 * Did you set up some restrictions regarding wp-login.php? Are you using a plugin
   called [Jonradio Private Site](https://wordpress.org/plugins/jonradio-private-site/)?
 * When trying to login using wrong credentials this is the error message that should
   be displayed: _ERROR: Invalid username or email. Lost your password?_
 * Did you tried to deactivate all other plugins and use a default WordPress theme?
   Maybe there is a theme/plugin conflict.
 * Best regards,
 *  Thread Starter [jacquesmivi](https://wordpress.org/support/users/jacquesmivi/)
 * (@jacquesmivi)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/shortcode-how-to-have-error-message/#post-8207601)
 * Yes its a probleme with genesis custom template. I don’t know how to fix this.
   
   In my template I use this code, can it be a problem ?
 * // Fonction to connect the user
    function user_not_logged() { echo ‘<h4>Se connecter
   </h4>’; echo do_shortcode(‘[wppb-login]’); echo ‘</br></br>’; echo ‘<h4>Retrouver
   son mot de passe</h4>’; echo do_shortcode(‘[wppb-recover-password]’); echo ‘</
   br></br>’; echo ‘<h4>Créer son compte</h4>’; echo do_shortcode(‘[wppb-register]’);
 * //end user_not_logged
    }

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

The topic ‘Shortcode, how to have error message’ is closed to new replies.

 * ![](https://ps.w.org/profile-builder/assets/icon-256x256.png?rev=2961144)
 * [User Profile Builder - Beautiful User Registration Forms, User Profiles & User Role Editor](https://wordpress.org/plugins/profile-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/profile-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/profile-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/profile-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/profile-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/profile-builder/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [jacquesmivi](https://wordpress.org/support/users/jacquesmivi/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/shortcode-how-to-have-error-message/#post-8207601)
 * Status: resolved