sidebar one content onto sidebar 2 (2 posts)

  1. AtaArticles
    Posted 5 years ago #

    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.

    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">
    <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>
    <?php } else { ?>
    <div id="manage">

    <?php } ?>

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar 1') ) : ?>
    <h2>Recent Articles</h2>
    $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(); ?>
    <?php endforeach; ?>
    <?php endif; ?>

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

    <div id="r-sidebar">

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


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


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

    <?php endif; ?>

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

  2. AtaArticles
    Posted 5 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


No tags yet.