WordPress.org

Ready to get started?Download WordPress

Forums

Items appearing twice in sidebar (2 posts)

  1. ericakadisco
    Member
    Posted 7 years ago #

    Hi,

    I don't really understand why my search form is appearing twice in my sidebar even though it only appears once in my code.

    my url is http://approachanxiety.com

    the sidebar code is


    <div id="sidebar"><br>
    <div><h2>Pickup 101</h2>
    <ul><li><?php witty(); ?></li>
    </div>
    <div><h2>Most Popular Posts</h2>
    <ul><?php MostWanted::mostwanted(); ?></ul>
    <div><h2>Free Audio Podcasts</h2>
    <ul><a href="http://approachanxiety.com/?cat=9" >
    <img src="http://approachanxiety.com/images/podcasts.jpg" border="0" alt="Listen Now" /></ul></a>
    </div>
    <div><h2>We Are Sexy Bitches</h2>
    <ul><li><a href="http://pickup101.com/members/AoA/index.html?af=528658">Pickup 101's Art of Attraction Workshop</a></li>
    <li><a href="http://pickup101.com/members/daygame/index.html?af=528658">Pickup 101's Daygame Workshop</a></li></ul>
    </div>
    <?php $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories"); foreach ($link_cats as $link_cat) { ?>
    </div>
    <div>
    <h3>Search This Site</h3>
    <ul>
    <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
    <input type="text" name="s" id="s" size="15" />
    <input type="submit" name="submit" value="<?php _e('Search'); ?>" />
    </form>
    <br>
    <?php } ?>
    <li><a href="http://add.my.yahoo.com/rss?url=<?php bloginfo('comments_rss2_url'); ?>" >
    <img src="http://approachanxiety.com/images/addtomyyahoo.gif" border="0" alt="Add to My Yahoo!" /></a>
    </li>
    <li><a href="http://fusion.google.com/add?feedurl=<?php bloginfo('comments_rss2_url'); ?>">
    <img src="http://approachanxiety.com/images/google.gif" border="0" alt="Add to Google Viewer"/></a>
    </li>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    </ul>
    </div>
    <div><h2>Categories</h2><ul>
    <?php wp_list_cats('sort_column=name'); ?></ul>
    </div>
    <div><h2>Random Posts</h2><ul>
    <?c2c_get_random_posts(8); ?></ul>
    </div>
    <div><h2>Hidden Camera Pickup</h2><ul>
    <li><a href="http://pickup101.com/cmd.php?af=528658">Beauty's Only Street Deep!<font color="#FF0000"> See Video Now</font></a></li></ul></div>
    <?php $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories"); foreach ($link_cats as $link_cat) { ?>
    <div id="linkcat-<?php echo $link_cat->cat_id; ?>">
    <h3><?php echo $link_cat->cat_name; ?></h3></div>
    <ul><?php wp_get_links($link_cat->cat_id); ?> </ul>
    <?php } ?>
    </div>

  2. Samuel B
    moderator
    Posted 7 years ago #

    Your whole sidebar code is sort of messed up:
    http://validator.w3.org/check?uri=http%3A%2F%2Fapproachanxiety.com%2F

Topic Closed

This topic has been closed to new replies.

About this Topic