Form submission to alternative URL
<p>In Wordpress within a page template I have a custom registration form which upon submit redirects to:</p>

<pre><code>&lt;form name="registerform" id="registerform" action="&lt;?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?&gt;" method="post" novalidate="novalidate"&gt;
</code></pre>

<p>Of course <code>wp-login.php</code> is where all the magic happens. Thing is I really want my errors displayed right on the page where the error happens. I don't want to be re-directed to <code>wp-login.php?action=register</code> .</p>

<p>How can I stay on page and display the errors inline? </p>