Items appearing twice in sidebar (2 posts)

  1. ericakadisco
    Posted 9 years ago #


    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><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><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>
    <?php $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories"); foreach ($link_cats as $link_cat) { ?>
    <h3>Search This Site</h3>
    <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'); ?>" />
    <?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><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>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    <?php wp_list_cats('sort_column=name'); ?></ul>
    <div><h2>Random Posts</h2><ul>
    <?c2c_get_random_posts(8); ?></ul>
    <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 } ?>

  2. Samuel B

    Posted 9 years ago #

    Your whole sidebar code is sort of messed up:

Topic Closed

This topic has been closed to new replies.

About this Topic