May 22, 201016 yr Ok, so im working on a friend`s website/blog. He wanted to have 4 links in the navigation. [Home][Register][Downloads][staff Team] They show up like that but i want to change them to: [Home][Downloads][staff Team][Register] and also make the "register" to "log-out" when the user is already logged in Im not sure how wordpress works cause i just started working on it, but i worked for 6-7 sites with drupal and this was quite simple to make. (drupal had "weight" for the links to show up" default was 0 min was -100 and max was +100) Is there a way to re-arrange my links as i want? Or is there a plugin to make it happen?
May 22, 201016 yr Personally, I'd edit the header.php file of your chosen theme to suit your requirements - i.e. manually put the links where you'd like them. As for the 'Log Out' bit, use this in the header: <?php if ( is_user_logged_in() ) echo '<a href="'.wp_logout_url( get_option('home') );.'" title="Logout">Logout</a>'; else echo '<a href="wp-login.php?action=register" title="Register">Register</a>'; ?> Wordpress is simpler than Drupal, thus lacks some of the more advanced functionality
May 22, 201016 yr Author Hmmm, i upgraded my copy of wordpress to 3.0 beta 2 and it seems like they have a Menu Editor now. Can you give me some hint on how to use that Logout code you gave me inside the header? Im really newbie (specially in php) so im not quite sure where to add it Do i have to find the existing login button and switch it with this code? Also, if anyone know a good plugin for good registering forms, please post it Edit: I`ve found a cool plugin with a sidebar registration/login form, so im ok! Thanks again for trying to help
Create an account or sign in to comment