Wenn das alles selbst geschriebener Code ist, kann da vermutlich niemand was zu sagen, ohne den Code gesehen zu haben. Aber ich kann ja mal raten. ;-)
Wird das Formular per AJAX abgeschickt oder wird die Seite beim Abschicken neu geladen?
Nur bei Home oder auch beim Aufruf irgendeiner anderen Seite? Kategorie-Archiv, Impressum etc.?
naja, wurde schon selber geschrieben. Ist ein eigenes Plugin!
Daten werden per POST versendet.
Ich sehe es einfach nicht ein, warum es nicht gehen soll.
Nach dem login, eifach irgendwas drücken z.b auch f5 und dann ist die navi liste aktualisiert
PHP
<nav id="access" role="navigation">
<h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
<div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
<div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
<div id="menu_right_user">
<?php
$user = new plug_user();
if($user->get_name()) {
print '<span title="' . $user->get_text('you_are_logged_in') . '">' . $user->get_name(40) . '</span><a href="' . plug_build_url(array('user' => 'register', 'action'=> 'editaccount'), true) . '">' . __('My account') . '</a><a href="' . plug_build_url(array('action' => 'logout'), true) . '">' . $user->get_text('log_out') . '</a>';
}else{
$logstr = '
<form action="' . plug_build_url(array('action' => 'login'), true) . '" method="POST" >
' . __('E-Mail') . ': <input style="font: 85% Arial, sans-serif;" type="text" name="login[email]" value="' . $_POST['login']['email'] . '" size="15"/>
' . __('Password') . ': <input style="font: 85% Arial;" type="password" name="login[pass]" size="10"/>
<input type="submit" name="login[submit]" value="' . __('Login') . '" />
</form>
';
print $logstr;
}
?>
</div>
</nav><!-- #access -->
Alles anzeigen