WordPress.org

Ready to get started?Download WordPress

Forums

sidebar one content onto sidebar 2 (2 posts)

  1. AtaArticles
    Member
    Posted 3 years ago #

    Hello,
    Ok, i am trying to move Management section of sidebar 1 onto sidebar 2.
    But everytime i try to do it, both sidebars turn blank with no content. I did it before and not sure why it's not working now. Also, the RSS, and comments links are not showing although the code is in sidebar.php. Any suggestions? Thanks.
    http://www.ataarticles.com/

    Sidebar.php code:

    </div><!-- end #content -->

    <div id="sidebars">
    <div id="l-sidebar">

    <?php if (!current_user_can('level_0')) { ?>
    <form name="loginform" id="autoriz" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post">
    <h2>Authorization</h2>
    <label for="login">Login:</label>
    <input type="text" name="log" value="" id="login" />
    <label for="password">Password:</label>
    <input type="password" name="pwd" value="" id="password" />
    <input type="submit" name="submit" value="Login" id="enter" />
    <div class="rememberme"><label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" value="forever" />Remember me</label></div>
    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
    <p><?php wp_register('', ''); ?>/wp-login.php?action=lostpassword">Lost your password?</p>
    </form>
    <?php } else { ?>
    <div id="manage">
    <h2>Management</h2>

    </div>
    <?php } ?>

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar 1') ) : ?>
    <h2>Recent Articles</h2>
    <?php
    $myposts = get_posts('numberposts=5');
    foreach($myposts as $post) : setup_postdata($post);
    ?>
    <div class="post">
    <h3>" rel="bookmark"><?php the_title(); ?></h3>
    <div class="postmetadata"><?php the_time('m.d.y') ?> @ <?php the_category(', ') ?></div>
    <div class="entry">
    <?php the_excerpt(); ?>
    </div>
    </div>
    <?php endforeach; ?>
    <?php endif; ?>

    </div><!-- end #l-sidebar -->

    <div id="r-sidebar">

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar 2') ) : ?>
    <h2>RSS</h2>

    <h2>Archive</h2>

      <?php wp_get_archives('type=monthly'); ?>

    <h2>Blogroll</h2>

      <?php wp_list_bookmarks('categorize=0&title_li='); ?>

    <?php endif; ?>

    </div><!-- end #r-sidebar -->
    </div><!-- end #sidebars -->

  2. AtaArticles
    Member
    Posted 3 years ago #

    Ok, i tried to copy/paste the bold section and embed after:

    <div id="r-sidebar">

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.