• Hello experts:

    After my authors log in, is there a way to have a link show up that says “Click Here To Make A Post”, so that when they click it, it takes them directly to the posting screen inside the admin???

    This is the block of code that I want this link to show up in (right after the words “Powered By WordPress”):

    <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar(2) ) : ?>
    
    <h2>Search</h2>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    
    <h2>Main Menu</h2>
    <ul>
    <?php wp_list_pages('title_li='); ?>
    </ul>
    
    <h2>Meta</h2>
    <ul>
    		<!-- <?php wp_register(); ?> -->
    		<li><?php wp_loginout(); ?></li>
    		<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
    		<?php wp_meta(); ?>
    </ul>
    
    <?php endif; ?>

    Thank you,

    –wpf.

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php
    if ( is_user_logged_in() ) {
        echo '<li><a href="http://yourdomain.com/wp-admin/post-new.php"> Click here to make a new post</a></li>';
    };
    ?>

    Maybe? Where yourdomain.com is your actual URL

    Thread Starter wpfiend

    (@wpfiend)

    Thanx for your response.

    But the weird thing is everytime I paste your code in there and go to save it, it does not save…!!!!

    Any ideas why this is happening? Never seen this before.

    –wpf.

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

The topic ‘Link to posting screen after logging in’ is closed to new replies.