Admin links on front end asks me to relogin
-
Hi,
On my website in the sidebar i have the following code (custom coded)..
<?php if(!$user_ID ) :?> <!-- --- if not logged in --- --> <div id="widget"> <div class="title">Reporter Tools</div> <div class="text"> <!-- Text Below --> <ul> <span style="color:#666666; font-size:9px; margin: 3px 0px 3px 3px;">You are <strong>not</strong> logged in.<br />Tool's will not be available.</span> <li><a href="http://www.totalbigbrother.com/wp-login.php" rel="loginbox-toggle">Staff Login</a></li> </ul> </div> </div> <!-- --- if not logged in --- --> <?php else :?> <!-- --- if logged in --- --> <div id="widget"> <div class="title">Reporter Tools</div> <div class="text"> <!-- Text Below --> <ul> <li><a href="http://totalbigbrother.com/wp-admin/post-new.php">Add New Post</a></li> <li><a href="http://totalbigbrother.com/wp-admin/edit.php">Edit Posts</a></li> <li><a href="http://totalbigbrother.com/wp-admin/edit-comments.php">Moderate Comments</a></li> <li><a href="http://totalbigbrother.com/wp-admin/index.php">Dashboard</a></li> <li><a href="http://email.totalbigbrother.com/">Check Email</a></li> <li><?php wp_loginout(); ?></li> </ul> </div> </div> <!-- --- if logged in --- --> <?php endif;?>
This code basically makes a widget on my sidebar depending on weather the reporter is logged in or not. If they are logged in they will see links such as “moderate comment”,”Add New Post” etc.. and if not they will see a link to login.
Now this code is working fine and i see the “widget” depending on weather im logged in..
The problem is, the links send me to the login page (even though im already logged in).
This is one of the links that do it, here is the HREF used..
<a href="http://totalbigbrother.com/wp-admin/post-new.php">Add New Post</a>
Is they a way to not take me to the login page as im already logged in?
I was thinking it could be a security thing as it has detected ive not followed a link from the dashboard or “back end” as i call it.
Thanks for any help you may give me..
Alec
-
* Innocent Bump 🙂 *
- The topic ‘Admin links on front end asks me to relogin’ is closed to new replies.